.net-core

The global.json

Remarks#

The global.json file is extremely powerful and unique to .NET Core and ASP.NET Core applications.

Schema

Schema store:

{
  "title": "JSON schema for the ASP.NET global configuration files",
  "$schema": "https://json-schema.org/draft-04/schema#",

  "type": "object",
  "additionalProperties": true,
  "required": [ "projects" ],

  "properties": {
    "projects": {
      "type": "array",
      "description": "A list of project folders relative to this file.",
      "items": {
        "type": "string"
      }
    },
    "packages": {
      "type": "string",
      "description": "The location to store packages"
    },
    "sdk": {
      "type": "object",
      "description": "Specify information about the SDK.",
      "properties": {
        "version": {
          "type": "string",
          "description": "The version of the SDK to use."
        },
        "architecture": {
          "enum": [ "x64", "x86" ],
          "description": "Specify which processor architecture to target."
        },
        "runtime": {
          "enum": [ "clr", "coreclr" ],
          "description": "Chose which runtime to target."
        }
      }
    }
  }
}

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow