Posted by
Joseph on
6/11/2004 6:05 PM |
Comments (2)
I was playing around with the May CTP release of ASP.NET Whidbey, and tried to add a reference to a library project from the same solution. The add reference button did nothing. At first I thought it was “just a bug”, but then I started thinking - there is no project file, so where is it going to keep the reference?

I ended up creating a bin folder in the root application directory and copying the assembly in there. The references tab now showed the assembly I copied in (as shown above), but recompiling the library assemby meant I had to manually copy the library assemby into the web app's bin directory. By setting the build location of the library assembly to my web application's bin directory I was able to recompile without having to do any manual copying.

I'm not sure if this is the “reccomended” way, but it worked for me. Let me know if anybody out there does know the “reccomended” way. Another way around this problem that I didn't explore might be adding the reference to the library project via the assemblies element in the web.config. I really like the “project-less web project“ idea, and assume all this will be fixed to work more intuitively in the beta and final releases.