Creating c# project from script compiler

Hi @AleksandarSM,

  1. Add the ScriptCode.resources file to your Visual Studio project, and set it’s Build Action to Embedded Resource.

image

2.) Modify the command source code to provide the correct path to the resource file. For example, if you have a plug-in project named Hello and you’ve added ScriptCode.resources like this:

image

Then modify the ResourceManager constructor like this:

System.Resources.ResourceManager rm = new System.Resources.ResourceManager("Hello.ScriptCode",
                                          System.Reflection.Assembly.GetExecutingAssembly());

Hope this helps.

– Dale

1 Like