I have a CodeDom setup, which needs to be referred to some assemblies present in the executable directory. However, it appears that only the work directory and GAC are searched for these assemblies, and not the executable directory.
var compilerOptions = new CompilerOptions {referencing = {"System.dll", "System.Core.dll", "Assembly0.dll", "Assembly1.dll"}}; The C # compiler will search:
- Application Work Directory
- GAC
For whatever reason it will not search Assembly0.dll and Assembly1.dll in the execution directory.
"Performance directory" is relevant only for your process, not the csc.exe process just the assembly reference Generate complete path for easy with system Reflection.Assembly.GetEntryAssembly (). Location
Comments
Post a Comment