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

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

问题描述

我有一个从 VS 2010 和 SharePoint 2010 迁移的 SharePoint 2013 解决方案,它每次在 VS 2012 中加载时都会为我提供升级报告.同时我还没有使用 VS 2010 打开它.此外,所有源代码文件都受到写保护,因此我必须始终处理强制覆盖和此类性质的事情.最初该解决方案绑定到 Vault 源代码管理,但我在升级之前删除了绑定,因为我们还切换到 Team Foundation Server 2012.目前,该解决方案的 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天全站免登陆