option to import vsconfig file not present when installing build tools through vs_BuildTools.exe

aman sahay 30 Reputation points
2024-08-20T10:11:51.88+00:00

We are working on a cross platform software build on c++ ; cmake used for Build system setup.
We were exploring regarding setup of pipeline machines through python script. Hence were exploring regarding the possibility of vs_BuildTools.exe being installed through command line without prompts . we have a vsconfig file which was previously used with Build tools on current setup of pipeline machines. But with current vs_BuildTools.exe the option to import vsconfig is not coming,

So the only option on first install is by installing the default vs_BuildTools.
Interesting observation regarding this would be that after installing the build tools we are able to import the vsconfig and then perform the complete installtion.

from command line point of view the desired install is only happening after running both of these commands in this order (ideally it should only happen by running the second command)

./vs_BuildTools.exe --installPath D:\VS_Install --passive

./vs_BuildTools.exe --installPath D:\VS_Install --passive --config "C:\Users\aman.sahay\Downloads\build_tools.vsconfig"

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,112 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,041 questions
{count} vote

Accepted answer
  1. Tianyu Sun-MSFT 30,566 Reputation points Microsoft Vendor
    2024-08-21T08:09:02.1033333+00:00

    Hello @aman sahay,

    Welcome to Microsoft Q&A forum.

    I tested locally, it seems that by directly using the second command, the installation succeeded and the .vsconfig file was imported correctly. Is it possible for you to test locally on your side and confirm that it works on your local machine?

    The command looks correct. Can you also kindly confirm that this issue isn’t caused by other settings in the script?

    If you use --quiet argument, instead of --passive argument, will it work?

    Besides, if you don’t use the previously used .vsconfig file, but try to create a new simple .vsconfig file without adding many workloads and components, just for test, will this simple .vsconfig file work? If it still doesn’t work, could you share us this newly created simple .vsconfig file for further check?

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.