FileNotFoundException for dll reference in project
-
I have a C# console application that makes a reference to a managed c++ dll. This managed c++ dll is in the same solution. I have added the reference by clicking add reference, clicking on the project tab and selecting the managed c++ dll project. When I build this application it is ok, but when the console is loading, I get a System.IO.FileNotFoundException, cannot find the {the name of the managed c++ dll} or one of its dependencies. I am clueless, since the managed c++ dll has also been copied to the same directory as the console application .exe, which is bin/Debug.
-
I have a C# console application that makes a reference to a managed c++ dll. This managed c++ dll is in the same solution. I have added the reference by clicking add reference, clicking on the project tab and selecting the managed c++ dll project. When I build this application it is ok, but when the console is loading, I get a System.IO.FileNotFoundException, cannot find the {the name of the managed c++ dll} or one of its dependencies. I am clueless, since the managed c++ dll has also been copied to the same directory as the console application .exe, which is bin/Debug.
kayhustle wrote: or one of its dependencies Does it have any dependencies? If so, have they been copied to the target directory too?
Do you want to know more? Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
-
kayhustle wrote: or one of its dependencies Does it have any dependencies? If so, have they been copied to the target directory too?
Do you want to know more? Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!