Open duddo opened 3 years ago
You can. You only need to make your class Summer
public.
. . .
As a side note please use https://github.com/oleg-shilo/cs-script repository. This one is no longer active.
Sorry for the wrong repo, should I reopen the question in the other one?
Unfortunately, even making the class public, I still get a compile error: it can't found the symbol.
I'm trying to use this approach as a workaround Roslyn, to try and have my script in separate files. Do you have any advise against this approach? Thank you.
Hi! I'm trying to load into the evaluator an
Assembly
produced byCompileAssemblyFromFile
, but I can't use the referenced type inside the script. Maybe I'm using a wrong syntaxis? I put together a simpe example to explain what I'm trying to achieve.Summer.cs:
Script.cs:
Program.cs:
Thank you!