更新vs2017 15.9.2后,在指定-T v141_xp情況下載編譯會報下面warning MSB8051


更新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'" />


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM