V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
forcecharlie
V2EX  ›  C

使用 Nuget 可以安装预览版的 Visual C++ 编译器工具啦

  •  1
     
  •   forcecharlie · 2016-02-21 19:22:48 +08:00 · 1053 次点击
    这是一个创建于 2992 天前的主题,其中的信息可能已经有所发展或是发生改变。

    原文地址: https://blogs.msdn.microsoft.com/vcblog/2016/02/16/try-out-the-latest-c-compiler-toolset-without-waiting-for-the-next-update-of-visual-studio/

    添加 Nuget 源:

    Add Nuget resources

    安装:

    InstallVisualCppTools

    安装命令:

    nuget install VisualCppTools -source http://vcppdogfooding.azurewebsites.net/nuget/ -Prerelease

    设置命令行环境:

    ```batch
    @echo off

    set curDir=%~dp0

    @call :GetWindowsSdkDir
    @call :GetWindowsSdkExecutablePath32
    @call :GetWindowsSdkExecutablePath64
    @call :GetExtensionSdkDir
    @call :GetVCInstallDir
    @call :GetUniversalCRTSdkDir
    set VCInstallDir=C:\tmp\VisualCppTools.14.0.23811-Pre\lib\native\

    if not "%UniversalCRTSdkDir%" == "" @set UCRTContentRoot=%UniversalCRTSdkDir%
    if not exist "%~dp0..\MSBuild\Microsoft.Cpp\v4.0\v140\" goto error_no_VCTARGETS
    cd "%~dp0..\MSBuild\Microsoft.Cpp\v4.0\v140\"
    set VCTargetsPath=%cd%\
    cd %curDir%
    ```

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2388 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:43 · PVG 20:43 · LAX 05:43 · JFK 08:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.