Westwind.Scripting
Westwind.Scripting copied to clipboard
Small C# library to provide dynamic runtime code compilation from source code for code and expressions execution
Hi, I am trying to dynamically compile classes. For most part, it is working fine, except when it comes to classes which have reference to another class which was previously...
Ability to reference an external script-file to compile classes into the generated assembly
Hello, thank you very much for providing this high quality library. I'm having a problem with it. I generated a code string and submitted it to **_script.ExecuteCodeAsync_** for execution. If...
Let's say I have two different classes that I will compile with CompileClass(). Can I compile them using one instance of CSharpScriptExecution, or do I need a new instance of...
Hi Rick - I have looked at your library; it's quite impressive. I am evaluating it to use in my current project. Basically I want to use to implement rule...
@RickStrahl Here is a similar issue to #18 ``` Severity Code Description Project File Line Suppression State Error NU1107 Version conflict detected for Microsoft.CodeAnalysis.Common. Install/reference Microsoft.CodeAnalysis.Common 4.6.0 directly to project...
does this support Unity ? ``` # current packages for working C# api in unity Microsoft.CodeAnalysis.Common.4.9.0-2.final Microsoft.CodeAnalysis.CSharp.4.9.0-2.final Microsoft.CodeAnalysis.CSharp.Scripting.4.9.0-2.final Microsoft.CodeAnalysis.Scripting.Common.4.9.0-2.final System.Buffers.4.5.1 System.Collections.Immutable.7.0.0 System.Memory.4.5.5 System.Numerics.Vectors.4.5.0 System.Reflection.Metadata.7.0.0 System.Runtime.CompilerServices.Unsafe.6.0.0 System.Runtime.Loader.4.0.0 ``` Mono runtime netstandard2.0
When invoking the method ExecuteCode for a second time on the same instance of CSharpScriptExecution the code parameter is not used. The code from the first invoke is used. In...
I needed to be able to step into generated scripts. I only use method CompileClass and changed the code of method `public bool CompileAssembly(string source, bool noLoad = false)` Probably...
In README.md, the example provided in the section "Compiling and Executing Entire Classes" notes to use the following if you need access to the assembly: ``` var assembly = script.Assembly...