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.

ohmantics
  • 1,799
  • 14
  • 16
Lilith River
  • 16,204
  • 2
  • 44
  • 76

1 Answers1

1

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

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
  • 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. – Lilith River Apr 28 '11 at 23:56
  • Consider switching to Web Application Projects, where you can set a `` in the project file. – SLaks Apr 28 '11 at 23:59
  • Web application projects work fine - I was hoping to offer Web Site samples though, since they don't require particular versions of visual studio. – Lilith River Apr 29 '11 at 00:55