Visual Studio 需要对此项目进行非功能性更改 [英] Visual Studio needs to make non-functional changes to this project

查看:32
本文介绍了Visual Studio 需要对此项目进行非功能性更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I opened a C# project that was created in VS 2010 SP, with VS 2012. A one-way conversion window appeared where I proceeded with the conversion.

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

Upon completion I got the following warning:

Visual Studio 需要在为了使项目能够在此版本和 Visual Studio 中打开2010 SP1 不影响项目行为.

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.

...但它没有说明哪些非功能性更改.有人可以给我线索吗?

...but it doesn't say which non-functional changes. Can someone clue me in?

推荐答案

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

I'm unsure as to why exactly this happens but I found that after first opening a VS2010 SharePoint 2010 project in VS2012 amongst other changes the following nodes were added to the .csproj file:

<ProjectMode>SharePointCustomization</ProjectMode>
<TargetOfficeVersion>15.0</TargetOfficeVersion>
<FileUpgradeFlags>0</FileUpgradeFlags>
<UpgradeBackupLocation>blah\blah\blah</UpgradeBackupLocation>
<OldToolsVersion>4.0</OldToolsVersion>

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

I found that if I manually edited the csproj file and removed the following three nodes the next time I opened the project no upgrade logs opened and the issue was resolved:

<FileUpgradeFlags>0</FileUpgradeFlags>
<UpgradeBackupLocation>blah\blah\blah</UpgradeBackupLocation>
<OldToolsVersion>4.0</OldToolsVersion>

这篇关于Visual Studio 需要对此项目进行非功能性更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆