Hi Oleg,
Thanks for the info. My scripts now compile as signed assemblies. The purpose of doing this however, was to generate friend assemblies that could access internal classes of another assembly (e.g. MainAssembly). I haven't been able to get this to work. I have specified the output file in CSScript.CompileWithConfig as e.g. Script0.dll, and added [assembly: InternalsVisibleTo("Script0.dll, PublicKey=...")] in MainAssembly's AssemblyInfo.cs. It works when compiling within Visual Studio.
Could it be to do with temp output paths? If so, is there anything I can do to solve the problem?
On Friday, 25 May 2012 01:42:43 UTC+1, Oleg Shilo wrote:
You are correct, compiler options is the best way (in fact the only way) to do this. It is available as command line argumants as well as script embedded instructions. The compiler options are can be used in the script hosting scenarios as well.
Cheers,