Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted
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?!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...