nooogle / CDS.CSharpScripting

Drop-in user control for C# editing with intellisense and compilation. Script compilation and execution classes for GUI and console applications.
MIT License
9 stars 3 forks source link

If other C# assembly references are supported #30

Open goodyu372 opened 3 years ago

goodyu372 commented 3 years ago

For example, If I can refer to any C# assembly (from GAC or other third-party DLL).

If possible, I hope you can realize this demand. I am willing to pay for it.

nooogle commented 3 years ago

Hi - you can! Like this:

r "C:\dev\github\CSharpRepl\CSharpRepl.Tests\bin\Debug\net5.0\Newtonsoft.Json.dll"

using Newtonsoft.Json;

goodyu372 commented 3 years ago

Hi - you can! Like this:

r "C:\dev\github\CSharpRepl\CSharpRepl.Tests\bin\Debug\net5.0\Newtonsoft.Json.dll"

using Newtonsoft.Json;

Hi,You don't understand what I really need.

My needs are: Users can reference third-party DLLS on the interface Finally, add using at the beginning of the script.

goodyu372 commented 3 years ago

For example, on the UI: Select the assembly by opening the File Selection dialog

goodyu372 commented 3 years ago

Hi - you can! Like this:

r "C:\dev\github\CSharpRepl\CSharpRepl.Tests\bin\Debug\net5.0\Newtonsoft.Json.dll"

using Newtonsoft.Json;

Thank you for your reply. Please see the reply I added above . Thks.

goodyu372 commented 3 years ago

This feature is very useful and I really want it For this requirement, I'd be happy to donate if you could help make it happen Please

┭┮﹏┭┮