When you first add your assembly as a reference to the web project, it will take the current compiled version of the assembly and make a copy of it, which is added into the web project’s bin folder. If you recompile your solution the assembly will not be copied aging, and it’s why you have to remove it and add it again. The question is why isn’t there a reference node in the solution explorer for the web project? Why do we have to use the website menu or the Property pages menu to add a reference? I also got an error when I try to add a project reference to my web project. We could of course add the source code for our class library into the web project code directory, but I like the way to separate project into a solution and use project references. Maybe this feature will be added to the beta, and will not work now in the preview version because this version is only meant to be used for testing some of the new features in the upcoming .Net version 2.0?
/Fredrik Normén NSQUARED2
http://www.nsquared2.net
/Fredrik Normén -
fredrikn @ twitterMicrosoft MVP, MCSD, MCAD, MCT
ASPInsidersMy Blog