Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build.cmd fails when VisualStudio 2019 is installed #2284

Closed
nohwnd opened this issue Jan 2, 2020 · 0 comments · Fixed by #2285
Closed

Build.cmd fails when VisualStudio 2019 is installed #2284

nohwnd opened this issue Jan 2, 2020 · 0 comments · Fixed by #2285

Comments

@nohwnd
Copy link
Member

nohwnd commented Jan 2, 2020

Description

Steps to reproduce

Install VisualStudio 2019, and VisualStudio 2017 with the workloads as defined in contributions guild. Run build.cmd.

Expected behavior

To honor the dependency on VisualStudio 2017 and pass the build correctly.

Actual behavior

Build fails with:

... Update-VsixVersion: Completed.
C:\Projects\vstest\scripts\build.ps1 : The term 'C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\MSBuild\15.0\Bin\msbuild.exe' is not recognized as the name of a cmdlet, function, script file, or operable program.  Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ C:\Projects\vstest\scripts\build.ps1 ; exit $LastExitCode;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...Bin\msbuild.exe:String) [build.ps1], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException,build.ps1

It fails because it finds VisualStudio 2019, which does not ship with msbuild 15.0 (but it has folder for it).

Diagnostic logs

Environment

Windows 10, latest code from master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant