.NET Core introduces a new project model. A projects is defined by JSON file named “project.json”. This post will examine
some of the options available to projects.
project.json defines everything about a .NET Core project. It controls the project’s platform support, references, compilation, and packaging.
The best way to get a starter template is execute
dotnet new on the command line, or to use Visual Studio. This will create an empty project with a project.json that works for a basic library.
Many projects can be build together. This is similar to a Visual Studio “Solution”.
Without configuration, projects are are considered part of a solution if they are in the same file directory with each other.
A file named global.json can be used to identify the location of projects
Contents of global.json
A typical project.json for a web project
A typical project.json for a library