I have the following piece of code: I want to achieve the same thing, but instead of having to specify the type of the expected delegate I want som ...
I have the following piece of code: I want to achieve the same thing, but instead of having to specify the type of the expected delegate I want som ...
I try to run method by CSharpScript. Method: I tried this solution: But it throws Microsoft.CodeAnalysis.Scripting.CompilationErrorException wi ...
I am just learning how to use Roslyn and I have a script like this: result is coming back as false. I even tried: It also results in false. I de ...
I'm trying to get a script compiled with Roslyn but whatever I do it keeps complaining about this, at this moment I tried almost everything and have n ...
I have to give my clients the ability to edit scripts with VS Code. The problem.. when my software call: host object, should be passed to the scrip ...
I am having a requirement to execute C# statement dynamically with a number of variables declared runtime. End-user suppose to declare variables runti ...
I wrote the following C# script (HelloWorld.csx file): I'm using dotnet-script (version 1.0.1) and .NET Runtime (version 3.1.14) When executing th ...
I have a requirement of executing a C# class in the string format and populate an object with the properties of that class. To achieve the requirement ...
error CS0246: The type or namespace name 'DateTime' could not be found (are you missing a using directive or an assembly reference?) When runnin ...
I am having problems getting this code to work. It seems that the CSharpScript.EvaluateAsync will not understand the Linq 'Select' command even though ...
I am trying to execute some arbitrary c sharp script in a c# .net application, but I have tried numerous ways to add an external file reference of an ...
Script evaluation code snippet: The code-analysis assemblies and the globals-type assembly are loaded into the same Collectible AssemblyLoadContext ...
I'm trying to use CSharpScript in a Blazor wasm application, testing with a simple EvaluateAsync: Throws: System.IO.FileNotFoundException: Could n ...
Recently I've been practicing C# and learning the fundamentals, and I found it really cool that I can create a script file with dotnet-script. But I h ...
I have a SharpScript .ss script file with some small code that polls a database and formats things to display. The output is getting too unruly for co ...
We're experiencing a weird problem at runtime when running code that uses the CSharpScripting classes. Here a sample code to reproduce the error: ...
I'm trying to use Roslyn to execute C# code that is defined by the user at runtime, similar to this example: Example copied from here My problem i ...
I have very simple code, which uses nuget Microsoft.CodeAnalysis.CSharp.Scripting: It was working perfectly fine month ago, now all of a sudden I s ...
Use of DateTime within the roslyn CSharpScript evaluator returns error code 'Expected ;' while strings work fine. Using Visual Studio 2019 with Micro ...
Problem: Can't use externally defined types in CSharpScript because it can't convert the object type from itself to itself due to some Assembly mismat ...