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
nuget restore project.csproj should error if the project isn't using nuget (p.config or p.json) #2766
#1496 just fixed this for "nuget update" w/ packages.config.
And should we change the error if the project would be using project.json, instead of packages.config -- for both nuget restore and nuget update.
referenced this issue
May 12, 2016
We need this to be done on the project level, but not the solution level. Solutions are ok to call restore on, and not have any usages of NuGet.
If you restore|update a project, w/o p.j or p.c - we error then.
e.g. clone https://github.com/KuduApps/SimpleWebApplication and run nuget restore.
Beta 1 (and earlier):
Make sure you don’t ship that, and please add a test case to cover this scenario.