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

Nuget MSBuild auto-detection picks up msbuild.exe 14 on a machine that has VS 2017 installed #8412

Closed
menaheme opened this issue Aug 1, 2019 · 9 comments

Comments

@menaheme
Copy link

@menaheme menaheme commented Aug 1, 2019

Please read the following information before posting the issue.

Details about Problem

NuGet product used: NuGet.exe

NuGet version (4.9.3.5777):

VS version (if appropriate): 2017 , 15.9 (other versions of VS also installed. 2015)

OS version (i.e. win10 v1607 (14393.321)): Win 7 v 6.1.7601

Detailed repro steps:

  1. run Nuget Restore -NoCache -NonInteractive

Actual result:

MSBuild auto-detection finds MSbuild ver 14, that is indeed installed on the machine. but visual studio 2017 came with MSBuild version 15.

Expected result:

MSBuild auto-detection to find MSBuild version 15

note:

this does not happen on all dev stations, and build agents. temporary fix - we use the specify msbuild version argument.

@dominoFire

This comment has been minimized.

Copy link

@dominoFire dominoFire commented Aug 1, 2019

Hi @menaheme ,

Hope all is well.

Can you try using the most recent version of nuget.exe (5.1.0) ?
Can you try an updated nuget.exe version that is closest to you current version (4.9.4) ?

@menaheme

This comment has been minimized.

Copy link
Author

@menaheme menaheme commented Aug 2, 2019

@menaheme

This comment has been minimized.

Copy link
Author

@menaheme menaheme commented Aug 4, 2019

Tried both 4.9.4 and 5.1 , same results as 4.9.3 - picking up MSBuild 14

@menaheme

This comment has been minimized.

Copy link
Author

@menaheme menaheme commented Aug 6, 2019

Anyone there?

@menaheme

This comment has been minimized.

Copy link
Author

@menaheme menaheme commented Aug 26, 2019

why is this still labeled "waiting for customer" ? i posted back 3 weeks ago

@nkolev92

This comment has been minimized.

Copy link
Member

@nkolev92 nkolev92 commented Dec 31, 2019

Hey @menaheme, apologies for the delay.

Is msbuild on your path?

NuGet will prefer msbuild on the path if available.

@menaheme

This comment has been minimized.

Copy link
Author

@menaheme menaheme commented Dec 31, 2019

MSBuild 14.0 is in the path. MSbuild 15.0 is not

@nkolev92

This comment has been minimized.

Copy link
Member

@nkolev92 nkolev92 commented Dec 31, 2019

NuGet will prefer msbuild from the path.

See #7621. I don't think there's a bug here.

@menaheme

This comment has been minimized.

Copy link
Author

@menaheme menaheme commented Jan 11, 2020

I agree, the issue should be closed

@menaheme menaheme closed this Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.