1

I need to reference external assemblies from a dozen asp.net web sites. These assemblies won't be in the GAC, but will be located in a location relative to the web site ("..\..\dlls\release").

From what I understand, Visual studio doesn't have an explicit assembly reference, or way to link a web site to an external .csproj or .dll library. (Unlike a web project).

These sites are sample projects for the open-source image-resizing HttpModule http://imageresizingin.net/.

I don't want to make users run a .bat file to copy the dlls into each /bin folder.

Is there some secret hints file I can use to let visual studio know where to look?

I'm working on dynamic assembly resolution, but that won't help visual studio at all, just hosted versions of the site.

1 Answer 1

1

Add the assemblies' full names to the <compilation> element of Web.config, and put them in the GAC on your dev machine.

Sign up to request clarification or add additional context in comments.

3 Comments

This is a distributed library, these are sample projects. GAC installation isn't an option unless I create an installer, something I am loath to do, considering the versioning issues they create.
Consider switching to Web Application Projects, where you can set a <HintPath> in the project file.
Web application projects work fine - I was hoping to offer Web Site samples though, since they don't require particular versions of visual studio.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.