G
Guest
I'm dynamically compiling some code and adding needed referenced assemblies.
When I add references to DLLs using an absolute path there is no problem.
When I add *relative* references to the system DLLs there is, again, no
problem. But when I try to add a *relative* reference to 3rd party managed
DLLs that are present in the GAC I always get a:
Metadata file "xxx" could not be found
error. For example (assuming some third party "BarUtils" assemblies in the
GAC):
StringCollection refs = new StringCollection();
refs.Add("c:\dev\Foo\bin\debug\Foo.dll"); // This will work
refs.Add("System.Security.dll"); // This will work
refs.Add("BarUtils.Forms.Bar.dll"); // This will fail
What am I missing??
Thanks,
-- TB
When I add references to DLLs using an absolute path there is no problem.
When I add *relative* references to the system DLLs there is, again, no
problem. But when I try to add a *relative* reference to 3rd party managed
DLLs that are present in the GAC I always get a:
Metadata file "xxx" could not be found
error. For example (assuming some third party "BarUtils" assemblies in the
GAC):
StringCollection refs = new StringCollection();
refs.Add("c:\dev\Foo\bin\debug\Foo.dll"); // This will work
refs.Add("System.Security.dll"); // This will work
refs.Add("BarUtils.Forms.Bar.dll"); // This will fail
What am I missing??
Thanks,
-- TB