How can I prevent .vdproj from compiling a PackageCode update every time I compile?

I have a Visual Studio 2010 solution for a web application that contains all the projects that make up the web application, plus the .vdproj file that the installer creates. All files are under configuration control.

Whenever I compile this solution without any changes in any source code, Visual Studio checks the .vdproj file and makes the changes. At a minimum, PackageCode will be replaced with a different GUID. In other cases, it will reorder the hierarchy in the "DeployProject" section of the .vdproj file in addition to updating the PackageCode.

This does not happen with any of our other .vdproj files. The only thing that makes this .vdproj unique is that in addition to containing the main output from other projects in the solution, it contains more than 50 additional .iso, .kml, .jpg files that do not come from the visual studio project. Could this cause a change to the PackageCode type?

+5
source share
2 answers

The package code should be changed every time you "release" msi, see http://msdn.microsoft.com/en-us/library/Aa370568 . Since VS does not know whether you will distribute this msi or not, it will be safe and modify the package code.

Visual Studio , , ( , -). Visual Studio 2010 SP1 , . http://connect.microsoft.com/VisualStudio/feedback/details/650587/vs-2010-sp1-changes-packagecode-in-vdproj-on-each-build-but-fails-as-source-controlled

+1

All Articles