我使用VS 2012打开了在VS 2010 SP中创建的C#项目。出现单向转换窗口,在该窗口中进行转换。
完成后,我收到以下警告:
Visual Studio needs to make non-functional changes to this project in order to enable the project to open in this version and Visual Studio 2010 SP1 without impacting project behavior.
...但并未说明哪些非功能性更改。有人可以告诉我吗?
最佳答案
我不确定为什么会发生这种情况,但是我发现在VS2012中首先打开VS2010 SharePoint 2010项目后,除其他更改外,以下节点已添加到.csproj文件中:
<ProjectMode>SharePointCustomization</ProjectMode>
<TargetOfficeVersion>15.0</TargetOfficeVersion>
<FileUpgradeFlags>0</FileUpgradeFlags>
<UpgradeBackupLocation>blah\blah\blah</UpgradeBackupLocation>
<OldToolsVersion>4.0</OldToolsVersion>
我发现,如果我手动编辑csproj文件并在下次打开项目时删除了以下三个节点,则不会打开升级日志,并且该问题已解决:
<FileUpgradeFlags>0</FileUpgradeFlags>
<UpgradeBackupLocation>blah\blah\blah</UpgradeBackupLocation>
<OldToolsVersion>4.0</OldToolsVersion>
关于visual-studio-2012 - Visual Studio需要对此项目进行非功能性更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14565528/