V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
forcecharlie
V2EX  ›  C

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

  •  1
     
  •   forcecharlie · Feb 21, 2016 · 1554 views
    This topic created in 3721 days ago, the information mentioned may be changed or developed.

    原文地址: 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%
    ```

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2775 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 14:18 · PVG 22:18 · LAX 07:18 · JFK 10:18
    ♥ Do have faith in what you're doing.