Replies: 3 comments 16 replies
-
To put it another way, inside my code (which works) I try to add all of the using statements and all assemblies to a C# script evaluator to run a C# script. Why it breaks? |
Beta Was this translation helpful? Give feedback.
-
It's a common mistake to get reference assemblies from |
Beta Was this translation helpful? Give feedback.
-
@huoyaoyuan, I tried to use How can I add the SDK pack? Or runtime pack. To be hosent, I don't even know what those terms mean. |
Beta Was this translation helpful? Give feedback.
-
I have a codebase (an ASP.NET Core API) that works. Now I want to run some C# scripts, based on this codebase.
This is my code to run the C# script:
Now I get this error:
I'm stuck here. I'm on Linux (Ubuntu 24.04) and inside Docker (Debian 12). I'm using .NET 8.
The same code, the same set of assemblies, and
using
statements work when I run my API. And this code snippet runs inside that API.Why do I get two different behaviors? How should I solve this issue? Why do I not get that error when I run my API?
Beta Was this translation helpful? Give feedback.
All reactions