dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Visual Studio 2017 paths

  1. #1
    Join Date
    Nov 2014
    Posts
    36

    Visual Studio 2017 paths

    In my batch file for command line compiling 64bit apps with Visual Studio 2017 Community I use the following call to initialize the environment.
    SET XTYPE=x64
    CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %XTYPE%

    I would be interested in obtaining the path for other versions of VS 2017 and possibly VS 2019 (if any one has it).

    Thank you.

    James

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,386

    Re: Visual Studio 2017 paths

    Maybe you will get some useful info here?
    Victor Nijegorodov

  3. #3
    Join Date
    Nov 2014
    Posts
    36

    Re: Visual Studio 2017 paths

    Thanks for the link.
    This is what I was looking for:
    For Visual Studio 2017, the typical installation location on a 64-bit computer is in \Program Files (x86)\Microsoft Visual Studio\2017\edition, where edition may be Community, Professional, Enterprise, BuildTools, or another name you supplied.

    Additional command files are available to set up specific build architectures, depending on your processor architecture and the Visual Studio workloads and options you have installed. In Visual Studio 2017, these are located in the VC\Auxiliary\Build subdirectory of the Visual Studio installation directory

    I have not installed the 2019 preview but I assume it will follow the same pattern using 2019 for 2017.

    James

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,386

    Re: Visual Studio 2017 paths

    Quote Originally Posted by jcfuller View Post
    ...
    I have not installed the 2019 preview but I assume it will follow the same pattern using 2019 for 2017.
    I haven't it installed either...
    And you may want to share your experience with this PATHs issue after you will install it!
    Victor Nijegorodov

  5. #5
    Join Date
    Nov 2014
    Posts
    36

    Re: Visual Studio 2017 paths

    I installed the 2019 preview on Windows 10 with Visual Studio 2017 Community already installed.
    output of my batch files
    James

    '==============================================================================
    2017 Community
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat x64
    '==============================================================================
    **********************************************************************
    ** Visual Studio 2017 Developer Command Prompt v15.9.4
    ** Copyright (c) 2017 Microsoft Corporation
    **********************************************************************
    [vcvarsall.bat] Environment initialized for: 'x64'
    Compiling resources.....
    Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

    Copyright (C) Microsoft Corporation. All rights reserved.


    Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27025.1 for x64
    Copyright (C) Microsoft Corporation. All rights reserved.

    CW_CC_Menu.cpp
    Microsoft (R) Incremental Linker Version 14.16.27025.1
    Copyright (C) Microsoft Corporation. All rights reserved.
    '=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*

    2019 Preview:
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat x64
    **********************************************************************
    ** Visual Studio 2019 Developer Command Prompt v16.0.0-pre.1.1
    ** Copyright (c) 2018 Microsoft Corporation
    **********************************************************************
    [vcvarsall.bat] Environment initialized for: 'x64'
    Compiling resources.....
    Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

    Copyright (C) Microsoft Corporation. All rights reserved.


    Microsoft (R) C/C++ Optimizing Compiler Version 19.20.27027.1 for x64
    Copyright (C) Microsoft Corporation. All rights reserved.

    CW_CC_Menu.cpp
    Microsoft (R) Incremental Linker Version 14.20.27027.1
    Copyright (C) Microsoft Corporation. All rights reserved.

  6. #6
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    6,712

    Re: Visual Studio 2017 paths

    That confirms what I thought. The next version of the c++ compiler looks like it's only going to be available in VS2019, and not as an update to VS2017. VS2019 has c++ 19.20 and VS2017 has 19.16. There's no planned VS2017 15.10 version (there's no 15.10 preview even being discussed that I know), so I guess that apart from some bug fixes, that's now it for c++ in VS2017. So to get the new c++ compiler (and c++20 features?) we've going to have to upgrade to VS2019.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2019 (16.1.3)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)