You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal is to create a simple test application that enables the loading of a script and accesses a predefined static class and outputs a value from this class to the console.
Version Used:
4.10.0-3.final
Steps to Reproduce:
I created a new net8 console application (puplish AOT profile) with basic project setup:
The goal is to create a simple test application that enables the loading of a script and accesses a predefined static class and outputs a value from this class to the console.
Version Used:
4.10.0-3.final
Steps to Reproduce:
I created a new net8 console application (puplish AOT profile) with basic project setup:
Added an additional class in
RoslynTest.Test
namespace to the project:then the simple main task:
When running in debug mode it works like expected, so output is:
Expected Behavior:
Actual Behavior:
When published using aot with params:
and running the application it throws an exeption:
Operation is not supported on this platform.
Diagnostic:
I identified by using outputs that the problem is with:
CSharpScript.EvaluateAsync(codeToEval, options);
Is there any workaround or a best practise for this?
Thx guys
The text was updated successfully, but these errors were encountered: