res63661 Posted May 27, 2003 Posted May 27, 2003 Hey, I am trying to build a simple, managed dll and then reference it from a console style project in vc++ 2k2. Both projects are in the same solution. I've set up the correct dependency order, and the project compiles beautifully. When I hit f5, all libraries load fine until I get to the project's main library which fails with "An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. Additional information: File or assembly name c5, or one of its dependencies, was not found." I have tried to setup my linker to add the path to the librarie's assembly file but I still get the error. What gives? Is there some special path variable to set for managed .dll includes? Quote
*Experts* mutant Posted May 28, 2003 *Experts* Posted May 28, 2003 Where do you have that DLL you are trying to reference? Try putting it in the bin folder of your project. Quote
res63661 Posted May 29, 2003 Author Posted May 29, 2003 Thanks mutant - I put it in the /debug folder (closest thing to a bin folder I could find) and it worked. If I reroute the output of the dll project to this folder it works nicely and I don't have to keep moving the file. Strange though - seems like it should work if I add the original output directory to the linker's search path but that didn't work?! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.