Skip to content

Instantly share code, notes, and snippets.

@AndriiTsok
Last active October 30, 2015 10:17
Show Gist options
  • Save AndriiTsok/ce5b53b00c6aadaa6db1 to your computer and use it in GitHub Desktop.
Save AndriiTsok/ce5b53b00c6aadaa6db1 to your computer and use it in GitHub Desktop.
The global.json file is used to configure the solution as a whole. It includes just two sections, projects and sdk by default.
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-beta8"
}
}
@AndriiTsok
Copy link
Author

Solution file for ASP.NET 5 projects

  1. The projects property designates which folders contain source code for the solution. By default the project structure places source files in a src folder, allowing build artifacts to be placed in a sibling folder, making it easier to exclude such things from source control.
  2. The sdk property specifies the version of the DNX (.Net Execution Environment) that Visual Studio will use when opening the solution. It’s set here, rather than in project.json, to avoid scenarios where different projects within a solution are targeting different versions of the SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment