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 update through package manager removes properties from the project.json #2888
@vancem noticed this when trying to upgrade a project.
This is happening for both
The former is a different question (NuGet from updating the shared framework) which I'll leave out of this issue. /cc @piotrpmsft
I happen to reproduce it from VS 2015 (update 2) To repo there
Create a new project
File -> New Project -> Visual C# -> .Windows -> .NET Core Console Application (.NET COre)
You get a new project with a project.json which has type property in dependencies
Then I wanted to upgrade Microsoft.NETCore.App to the latest private drop. I did this by right cliking on the 'References' node in the solution, -> Manage Nuget Packages. I have made a feed for the myget repo (if you don't already have it)
and browsed to the Microsoft.NetCore.App package, and clicked the 'upgrade icon associated with that package.
Once I upgraded, if I looked at my project.json I get
which did the upgrade but 'lost' the "type" : "platform" property, which basically broke my app in a way that I had to go get expert help (Eric) to figure out.