Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Gulp NuGet Restore no longer working [v9] #422
Unclear now if this is environmental, but running the gulp task after install isn't working. The Nuget-Restore task "runs", but no assemblies get restored.
Snip of my output showing the quick autorun of Nuget-Restore, which doesn't restore packages:
Yeah this repros for me as well, probably related to the move to
@jeanfrancoislarente do you have this issue in Habitat.Home??
referenced this issue
Jul 6, 2018
Thanks @jeanfrancoislarente , upping to those versions works in grabbing the references, but throws these errors for each NuGet package:
Doesn't appear that the packages for 9.0.2 are for 4.6.2 -- the packages themselves contain assemblies in NET452 folders.
Sitecore 9 definitely should be targeting Framework 4.6.2:
I'm not getting those errors, hold tight as I'm committing a fix for the restore shortly that hopefully solves things. Can you confirm you are on MSBuild 15.5 or higher? If not you may need to update VS17.
@nickwesselman those errors go away with your suggestion of moving to the restore switch. I'm on 15.5/VS17.
After changing the build definition to the following and removing the nuget-restore step from the default gulp task, the solution properly restores nuget packages:
However, there are new errors. Safe to close this issue and open new ones for the resulting issues, I think.