How to prevent Visual Studio to prompt to upgrade

2019-01-28 05:26发布

I have a solution in with project in C#, C++/CLI targeted to .NET 4 and with some dependencies in .NET4. When I open this solution in Visual Studio 2013 it prompts for upgrading the solution. Some developers in our remote teams don't read the messagebox and just press OK. The dependencies are not compatible after project upgrade and then they are mailing me that the solution cannot be built.

upggradeVCplusplus

Is there some way to turn off this prompts for .NET Framework upgrade?

1条回答
相关推荐>>
2楼-- · 2019-01-28 05:28

Put the following line in the global property section of your project file.

<VCProjectUpgraderObjectName>NoUpgrade</VCProjectUpgraderObjectName>

in context:

<PropertyGroup Label="Globals">
    ...
    <VCProjectUpgraderObjectName>NoUpgrade</VCProjectUpgraderObjectName>
</PropertyGroup>

Works for Visual Studio 2015 & 2017 as well.

You will need to remove it when you want to do the upgrade.

Source: https://blogs.msdn.microsoft.com/dsvc/2015/12/13/migration-from-vs2012-to-vs2015-ide-only-throws-compiler-upgrade-warning/

查看更多
登录 后发表回答