Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We need to develop for SharePoint 2013 and SharePoint 2010 concurrently, so I installed Windows Server 2012 on my machine with a SharePoint 2013 installed, because of the downward compatibility of SharePoint 2013.

When opening a solution containing SharePoint 2010 projects with Visual Studio 2012 (with the Office 2013 developer tools installed), every time I get an annoying dialogue saying:

Do you want to upgrade "SharePoint2010Project.csproj" tp a SharePoint 2013 solution? Once the upgrade is complete, the solution can't be deployed to SharePoint 2010. Do you want to continue?

and after clicking "No", a migration report opens in my browser. Additionally, the .csproj file gets checked-out and the FileUpgradeFlags element gets a value of 40.

Appart from being really annoying (especially when opening very large solutions), the check-out of the project file and value of FileUpgradeFlags is a problem when accidentally checked-in, because then all my collegues still working with Windows 7 and SharePoint 2010 would be presented with another migration dialogue upon opening the respective solution.

Does anyone experience a similar behaviour and possibly know a way to disable the migration dialogue and check-out of the project files?

We need the SharePoint 2010 projects to stay that way.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Posted an answer to your question on stackoverflow site here

The short answer - update .csproj file:

<TargetOfficeVersion>15.0</TargetOfficeVersion>

And commit to SVN or Git.

Then update .csproj.user file:

  <PropertyGroup>
    ...
    <TargetOfficeVersion>14.0</TargetOfficeVersion>
  </PropertyGroup>

Keep this file localy on the machine with SP 2010.

share|improve this answer
    
Once I get enough reputation, I will upvote your answer here, too! :) –  Boris Aug 21 '13 at 19:07
    
Ok. Thank you :) –  Сергій Aug 22 '13 at 9:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.