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

Command line MSBuildVersion parameter should support 15 #4941

Open
emgarten opened this issue Mar 30, 2017 · 5 comments
Open

Command line MSBuildVersion parameter should support 15 #4941

emgarten opened this issue Mar 30, 2017 · 5 comments
Labels
Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Product:NuGet.exe NuGet.exe Status:Excluded from icebox cleanup Status:Inactive Icebox issues not updated for a specific long time
Milestone

Comments

@emgarten
Copy link
Member

nuget.exe auto detects msbuild 15, but fails when passing in -MSBuildVersion 15

> D:\tmp\nuget.4.0.0.exe restore -msbuildversion 15
Cannot find the specified version of msbuild: '15'

The help also does not list 15.

 -MSBuildVersion 
Specifies the version of MSBuild to be used with this command. Supported values are 4, 12, 14. By default the MSBuild in your path is picked, otherwise it defaults to the highest installed version of MSBuild.

//cc @AArnott

@emgarten emgarten added the Product:NuGet.exe NuGet.exe label Mar 30, 2017
@brandonh-msft
Copy link

brandonh-msft commented May 5, 2017

Well, now the docs do show v15:

(3.2+) Specifies the version of MSBuild to be used with this command. Supported values are 4, 12, 14, 15. By default the MSBuild in your path is picked, otherwise it defaults to the highest installed version of MSBuild.

but the error persists (I just filed #5170)...

@ITCBB
Copy link

ITCBB commented May 9, 2017

Dealing with this issue since yesterday. I actually had to uninstall previous MSBuid versions on my build server and remove the -MSBuildVersion argument from the call to get it to work with 15.1.

@watashiSHUN
Copy link

how does nuget3.5 -MSBuildVersion work? with nuget4.0 -MSBuildPath, it is straight forward (I need to locate the exact msbuild.exe on my machine).

how can I make sure my msbuild15 can be discovered by nuget3.5? where does it look? do I need the willow api?

@johnrutherford
Copy link

I'm having this same issue too.

@rrelyea
Copy link
Contributor

rrelyea commented Jul 10, 2017

I think msbuild might be version 15.1, not 15?
@watashiSHUN - In order to discover the per VS install (per willow) - I believe you need to use NuGet.exe 4.1.0 or later

@emgarten emgarten added this to the Backlog milestone Oct 17, 2017
@emgarten emgarten added the Priority:2 Issues for the current backlog. label Oct 17, 2017
@ghost ghost added the Status:Inactive Icebox issues not updated for a specific long time label Sep 1, 2022
@nkolev92 nkolev92 added Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. and removed Priority:2 Issues for the current backlog. labels Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Product:NuGet.exe NuGet.exe Status:Excluded from icebox cleanup Status:Inactive Icebox issues not updated for a specific long time
Projects
None yet
Development

No branches or pull requests

9 participants