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

Resolve-MSBuild no longer locates '15.0 x86' #148

Closed
paddyclark opened this issue Apr 9, 2019 · 6 comments
Closed

Resolve-MSBuild no longer locates '15.0 x86' #148

paddyclark opened this issue Apr 9, 2019 · 6 comments

Comments

@paddyclark
Copy link

In previous versions MSBuild 15.0 x86 was located at

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe

The current version of Resolve-MSBuild (1.4.0) reports "The specified version is not found."

@nightroman
Copy link
Owner

nightroman commented Apr 9, 2019

Hmm. I cannot reproduce. Let's try to figure out what wrong is...

  1. Does MSBuild.exe exist where expected?
  2. Do you have VSSetup module installed?
  3. What is the exact/full command?
  4. What is the exact/full error?

@paddyclark
Copy link
Author

  1. Yes
  2. I don't believe so
  3. Working (1.3.0):
.\Resolve-MSBuild.ps1 "15.0 x86"

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe
  1. Not Working (1.4.0)
.\Resolve-MSBuild.ps1 "15.0 x86"

Resolve-MSBuild.ps1 : Cannot resolve MSBuild 15.0  : The specified version is not found.
At line:1 char:1
+ .\Resolve-MSBuild.ps1 "15.0 x86"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException    
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Resolve-MSBuild.ps1

@nightroman
Copy link
Owner

nightroman commented Apr 9, 2019

.\Resolve-MSBuild.ps1 "15.0 x86"

The version is not quite right, there must be no space in it, i.e. just use 15.0x86
I wounder why it worked before... In any case I should perform some better validation (TODO).

@paddyclark
Copy link
Author

You're right. Using 15.0x86 works for both versions.

@nightroman
Copy link
Owner

Good! Please keep this issue open for now. I'll think of some better version validation.

@nightroman
Copy link
Owner

Invoke-Build v5.5.1
Resolve-MSBuild 1.4.1
FWIW, spaces like in the problem case are allowed.

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

No branches or pull requests

2 participants