Visual Studio 2012不断显示升级报告 [英] Visual Studio 2012 keeps showing upgrade report

查看:200
本文介绍了Visual Studio 2012不断显示升级报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从VS 2010和SharePoint 2010迁移而来的SharePoint 2013解决方案,每次在VS 2012中加载时都会向我提供一份升级报告.与此同时,我还没有在VS 2010中打开它.另外,所有源代码文件都具有写保护,因此我必须始终处理强制覆盖和此类性质的事情.该解决方案最初是绑定到Vault源代码管理的,但是在升级之前我已删除了绑定,因为我们还将切换到Team Foundation Server2012.目前,该解决方案的2012版本不应绑定到任何源代码管理.解决方案中的8个项目中只有一个存在此问题.

I have a SharePoint 2013 solution migrated from VS 2010 and SharePoint 2010 which gives me an upgrade report every time it loads in VS 2012. I have not opened it with VS 2010 in the mean time. Also, all the source code files are write protected so I consistently have to deal with forcing overwrites and things of that nature. Originally the solution was bound to Vault source control, but I removed the bindings prior to upgrading because we're also switching to Team Foundation Server 2012. Presently the 2012 version of the solution should not be bound to any source control. Only one project out of the 8 in the solution is having this issue.

迁移报告消息:

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

这是否可能是由于项目文件受到写保护?有什么手动方法可以编辑项目文件并防止将来发生这种情况?

Is this potentially due to the project file being write protected? Is there some manual way I can edit the project file and prevent this in the future?

推荐答案

我不确定为什么Visual Studio 2012无法正确处理升级,但是我已经找到了解决方法.编辑您的.CSPROJ文件,然后查找以下行:

I'm not sure why Visual Studio 2012 can't deal with the upgrade properly, but I've found the workaround. Edit your .CSPROJ file(s) and look for this line:

<FileUpgradeFlags>0</FileUpgradeFlags>

删除该节点的内容,使其为空:

Remove the contents of that node so it's empty:

<FileUpgradeFlags></FileUpgradeFlags>

Visual Studio将不再尝试每次升级项目.作为记录,我仅在使用VS 2012升级SharePoint 2010项目时才看到这种行为.其他类型的项目似乎还可以.

Visual Studio will no longer attempt to upgrade the projects every time. For the record, I've only ever seen this behavior when upgrading a SharePoint 2010 project using VS 2012. Other types of projects seem to be okay.

这篇关于Visual Studio 2012不断显示升级报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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