Azure pipeline failing in windows build due to visual studio 2019 erro

Shekhar Gupta 0 Reputation points
2024-09-12T07:50:23.4166667+00:00

Azure pipeline is failing for windows build pipeline coming below error

File not found: 'C:"Program Files (x86)""Microsoft Visual Studio"\2019\Enterprise\VC\Auxiliary\build\vcvars64.bat'

visual studio 2019 bat file is not found at path.

Please suggest how to resolve this.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,193 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,246 Reputation points Microsoft Vendor
    2024-09-12T10:03:12.9233333+00:00

    Hello @Shekhar Gupta,

    Welcome to Microsoft Q&A forum.

    Did you navigate to the directory that mentioned in the error message => C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\build and confirm that the vcvars64.bat file does exist?

    User's image

    If it doesn’t exist, please check if you have installed corresponding workload and components. For example, the vcvars64.bar file was there after I installed the "Desktop development with C++" workload from VS Installer > Modify > Workloads.

    User's image

    More specifically, you can directly install "MSVC v142 – VS 2019 C++ x64/x86 build tools (Latest)" component from VS Installer > Modify > Individual components.

    User's image

    Please feel free to let us know the results.

    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.


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.