Build Error in Visual Studio 2010

I cannot create my solution in Visual Studio 2010 without checking my installation project. Is there something I can do to fix this?

This is where the error message appears:

The command you are trying to execute cannot be completed because the file "FooSetup.vdproj" is under source control and has not been verified.

+4
source share
5 answers

The problem is that the FooSetup.vdproj file is not verified. This means the file is read-only .

If you do not want to check the file, work offline (without connecting the project to the source)

Its a problem with VS2010 SP1 . You can check any of the workarounds mentioned in Microsoft Connect.

+2
source
  • Right-click the installation project in Solution Explorer.
  • Select Check for editing ... in the context menu.
  • Click the Check Out button in the window that appears.

The problem must be resolved.

+1
source

Installation projects are notoriously incompatible with source control. If something in FooSetup.vdproj is necessary / will be changed during the build, it will not work with this message.

After each registration, I always check the installation project immediately. AFAIK is PITA.

0
source

During further research, I found an article explaining that upgrading to SP1 caused this problem and a fix is ​​available. My colleague is not getting problems and is not upgrading to VS2010 SP1.

Here is an excerpt describing my problem and what is happening in the installation project:

I just upgraded from VS 2010 to VS 2010 SP1, and now I run an “endless loop” of dialog boxes when creating a project (.vdproj) that is under source control. If .vdproj is not verified and I create the project, I get a message when it starts building the installation project, saying: "The command you are trying to execute cannot be completed because the file" XXX.vdproj "is under source control and is not is verified. " There are ok and help buttons in the dialog box, but if I click ok the dialog just closes and reappears. Then I have to use the task manager to destroy the devenv.exe file.

If I check .vdproj before doing the build, I see that the file is modified. It will always change the PackageCode property of the installer, but in some cases will also change the order of the various parts of the file.

My problem is that in all previous versions of VS, just creating the installer did not make changes to the file, and I do not want my configuration projects to be checked all the time to be able to create them. I also have a script build that works devenv, and this does not work for the same reason as above.

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

0
source

Microsoft has fixed this issue, a fix is ​​available here.

MS Connect: http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=35848

Code Gallery: http://archive.msdn.microsoft.com/KB2529927

0
source

All Articles