kevin55

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

更新vs2017 15.9.2后,在指定-T v141_xp情况下载编译会报下面warning:

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: 面向 Windows XP 的支持已被弃用,将来的 Visual Studio 版本不再提供该支持。请访问 https://go.microsoft.com/fwlink/?linkid=2023588,获取详细信息。

如果不想看到warning, 可以将C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets中Line 39行

    <!-- Deprecation of XP in next VS version. To ignore this message, set XPDeprecationWarning property to false. -->
    <VCMessage Code="MSB8051" Type="Warning" Condition="'$(XPDeprecationWarning)' != 'false'" />

修改为

<!-- Deprecation of XP in next VS version. To ignore this message, set XPDeprecationWarning property to false. -->
    <VCMessage Code="MSB8051" Type="Warning" Condition="'$(XPDeprecationWarning)' == 'false'" />
posted on 2018-11-26 11:32  kernel_main  阅读(2500)  评论(0编辑  收藏  举报