Visual Studio需要对此项目进行非功能性更改

How*_*wie 19 visual-studio-2010-sp1 visual-studio-2012

我打开了一个在VS 2010 SP中使用VS 2012创建的C#项目.出现了单向转换窗口,我继续进行转换.

完成后,我收到以下警告:

Visual Studio需要对此项目进行非功能性更改,以使项目能够在此版本和Visual Studio 2010 SP1中打开,而不会影响项目行为.

......但它没有说明哪些非功能性变化.有人能告诉我吗?

小智 21

我不确定为什么会发生这种情况但我发现在VS2012中首次打开VS2010 SharePoint 2010项目并在其他更改中将以下节点添加到.csproj文件中:

<ProjectMode>SharePointCustomization</ProjectMode>
<TargetOfficeVersion>15.0</TargetOfficeVersion>
<FileUpgradeFlags>0</FileUpgradeFlags>
<UpgradeBackupLocation>blah\blah\blah</UpgradeBackupLocation>
<OldToolsVersion>4.0</OldToolsVersion>
Run Code Online (Sandbox Code Playgroud)

我发现如果我手动编辑csproj文件并在下次打开项目时删除了以下三个节点,则没有打开升级日志并且问题已解决:

<FileUpgradeFlags>0</FileUpgradeFlags>
<UpgradeBackupLocation>blah\blah\blah</UpgradeBackupLocation>
<OldToolsVersion>4.0</OldToolsVersion>
Run Code Online (Sandbox Code Playgroud)