I have a CodeDom setup that needs to reference some assemblies that are in the executable's directory. However, it appears that only the Working Directory and the GAC are searched for these assemblies, and not the executable directory.
var compilerOptions = new CompilerOptions {
ReferencedAssemblies = {
"System.dll",
"System.Core.dll",
"Assembly0.dll",
"Assembly1.dll"
}
};
The C# compiler will search:
- Application working directory
- GAC
For whatever reason it will not search for Assembly0.dll nor Assembly1.dll in the execution directory.