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 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.
-
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 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.
Did you by any chance change the output name of the managed c++ dll? Because I changed the output name of a dll in my solution with C#2005 and got the same exception when the application loaded.
website // Project : AmmoITX //profile Another Post by NnamdiOnyeyiri