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 not restoring nuget packages as expected #311

Closed
jayaranigarg opened this issue Nov 13, 2017 · 8 comments
Closed

Build.cmd not restoring nuget packages as expected #311

jayaranigarg opened this issue Nov 13, 2017 · 8 comments

Comments

@jayaranigarg
Copy link
Member

jayaranigarg commented Nov 13, 2017

Description

Pulling this issue out of pull request where nuget packages are not restoring appropriately.

@jayaranigarg
Copy link
Member Author

@kant2002 : Do you have any user setting for nugget that might be impacting this?

@kant2002
Copy link
Contributor

kant2002 commented Dec 3, 2017

@jayaranigarg Right now I have VS install in broken state, (error with WinSDK installation), so I could not verify right now what exact could causes this error on my side.
I have suspect following two thing

  1. Nuget.exe (3.5) in the %USERPROFILE%, but Nuget.exe 3.6 in the local TestFx folder should take precedence I suppose.
  2. I have customization to global NuGet.config, but right now I don't have any Microsoft internal feed in it right now.
    I try to find time to reinstall today while I relatively free and verify what could cause this error. But if this is not happens, could you give me some ideas what else could I check on my PC which could cause incorrect package layout in the local packages folder.

@jayaranigarg
Copy link
Member Author

@kant2002 : To find where nuget.exe is getting picked up from and which nuget feeds are getting used to restore nuget packages, you can turn on Verbose logs by specifying "Build.cmd -Verbose"

@kant2002
Copy link
Contributor

kant2002 commented Dec 5, 2017

@jayaranigarg build working using 3.6 version which is located in the root folder of the testfx repository, I already check that.
Here command from running build.cmd -Verbose

XXX\testfx\nuget.exe restore -msbuildVersion 15.0 -verbosity normal -nonInteractive -configFile XXX\testfx\Nuget.config XXX\testfx\scripts\Toolset\packages.config

@jayaranigarg
Copy link
Member Author

@kant2002 : Above command seems perfectly ok.
Can you try removing customizations from global Nuget.config and try once (just trying to rule out this possibility) ?
Also, did you get a chance to reinstall and check?
Meanwhile, we are following up with the Nuget team to figure out what might be causing this issue.

@jayaranigarg
Copy link
Member Author

@kant2002 : Nuget restore issue is now fixed. Can you please go ahead and update your PR ?

@jayaranigarg
Copy link
Member Author

@kant2002 : Checking back on this. Can you please do the needful?

@kant2002
Copy link
Contributor

kant2002 commented Jan 4, 2018

Build is working for me on master. I think this could be closed.

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

3 participants