The Mehn Point -aka- Paul Mehner's Blog
Sunday, February 27, 2005
 
Some very interesting anomalies can occur when you copy a project file on the filesystem to make another project that you intend to use in the same solution. Visual Studio creates a Project Guid which can be seen in the .vbproj or .csproj file that uniquely identifies a project. When you make references to other projects in the same solution, Visual Studio stores this unique project guid as the location to find the assembly. This can leave the developer scratching his or her head when the assembly that is being referenced is from a different project that the developer selected. To avoid this difficult to locate problem when copying project folders on the filesystem, it is important to generate a new guid and modify the project's .xxproj file accordingly before referencing the project in a solution.

Comments:
Yeah, I've run into that! It was very mysterious, that's for sure. Thanks for posting a solution, Paul.
 
Post a Comment

Powered by Blogger