I am coding a C# Winforms application where the user can create and run their own dynamic scripts using the CSharpCodeProvider class.
I have this working successfully with simple code (as a string), and multiple class files (external files), yet am not sure on how to load a whole C# project and successfully compile and invoke the code.
I have done some research and cannot find the required information, such as a tutorial or some example code.
I am using a WinForms application, with a simple form and button as an example of a C# project to compile and invoke.
Can someone please tell me the source files that I need to add to get a whole C# project compiling and invoking correclty? Do I need to include the .resx as well as the .Designer.cs files? Also, are there specific referenced assemblies that I need to add?