vs2005: reference web app code from console app without replicating the dll's?

Is it possible to create a console app that uses code from a web app *without* having VS copy the web's dll, and all the dll's its dependent upon from the web directory over into the console's bin directory?  I'd like the console app to use/link to the web code back in it's original directory.

Not sure if this is relevant but I created the reference by browsing to the web app's dll.  The "Projects" tab in the "Add Reference" dialog is empty (doesn't show any Projects).

Thanks for any help-
ottenmAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Craig WagnerConnect With a Mentor Software ArchitectCommented:
I'm pretty sure the only way you could accomplish what you're trying to do would be to put the web application assemblies in the GAC. If an assembly isn't in the GAC, .NET requires that it be in the same folder as the calling assembly, or a subfolder of the calling assembly.
0
 
ottenmAuthor Commented:
Thanks CraigWagner.  Your description made me realize I could also deploy the console's EXE into the web app's bin directory, which is working.

Thanks for your help-
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.