Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is project.json deprecated?

Tags:

Is project.json going away and web.config coming back in ASP.NET Core 1.0?

In the roadmap document, the update in '16 Q4 or '17 Q1, they mention "replacing .xproj/project.json with .csproj/MSBuild".

Does that mark the end of project.json?

like image 823
Sam Avatar asked Jul 23 '16 00:07

Sam


People also ask

What is Project json?

Project. json is an automatically generated file which is included in the folder of each automation project made in Studio. The file holds information about the project dependencies, and web services loaded in libraries.

What is the project assets JSON file?

The project. json file maintains a list of packages used in a project, known as a package management format. It supersedes packages.

Where is the project JSON file?

The package. json file is normally located at the root directory of a Node.

What is Project lock json?

Old answer for posterity: project. lock. json is generated by the . NET tooling when you restore the project's packages. You shouldn't touch it or check it into source control.


1 Answers

Update: As of Visual Studio 2017 and the latest dotnet CLI, project.json is officially dead. Visual Studio will migrate projects automatically, and there is a comparison chart here: https://docs.microsoft.com/en-us/dotnet/articles/core/tools/project-json-to-csproj

project.json is indeed going away. As part of a future update to the .NET Core tooling, .xproj/project.json will be merged back into .csproj. However, the team has stated:

The new MSBuild will not have a complete list of every file, so that should reduce the size of the build file. It will still be XML, but the team is committed to making that experience better for all .NET projects. This will be an enhanced MSBuild that has all of the best parts of project.json

So, project.json will be deprecated, but some of the innovations such as auto-discovery of source files will stick around. They've also committed to improving the MSBuild experience given that many people voiced their opinion about this change.

web.config is a different thing entirely. It's used when hosting ASP.NET Core projects on IIS, but otherwise is not required.

like image 138
Nate Barbettini Avatar answered Sep 22 '22 06:09

Nate Barbettini