Skip to content

Instantly share code, notes, and snippets.

@timheuer
Last active April 4, 2022 19:16
Show Gist options
  • Save timheuer/eb857769844e8525f41e91f85d78c2c5 to your computer and use it in GitHub Desktop.
Save timheuer/eb857769844e8525f41e91f85d78c2c5 to your computer and use it in GitHub Desktop.
{
"title": "JSON schema for the Visual Studio LaunchSettings.json file.",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"definitions": {
"profile": {
"type": "object",
"allOf": [ { "$ref": "#/definitions/profileContent" } ],
"required": [ "commandName" ]
},
"iisSetting": {
"type": "object",
"allOf": [ { "$ref": "#/definitions/iisSettingContent" } ]
},
"iisSettingContent": {
"properties": {
"windowsAuthentication": {
"type": "boolean",
"description": "Set to true to enable windows authentication for your site in IIS and IIS Express.",
"default": false
},
"anonymousAuthentication": {
"type": "boolean",
"description": "Set to true to enable anonymous authentication for your site in IIS and IIS Express.",
"default": true
},
"iisExpress": {
"type": "object",
"description": "Site settings to use with IISExpress profiles.",
"allOf": [ { "$ref": "#/definitions/iisBindingContent" } ]
},
"iis": {
"type": "object",
"description": "Site settings to use with IIS profiles.",
"allOf": [ { "$ref": "#/definitions/iisBindingContent" } ]
}
}
},
"iisBindingContent": {
"properties": {
"applicationUrl": {
"type": "string",
"format": "uri",
"description": "The URL of the web site.",
"default": ""
},
"sslPort": {
"type": "integer",
"maximum": 65535,
"minimum": 0,
"description": "The SSL Port to use for the web site.",
"default": 0
}
}
},
"profileContent": {
"properties": {
"commandName": {
"type": "string",
"description": "Identifies the debug target to run.",
"default": "",
"minLength": 1
},
"commandLineArgs": {
"type": "string",
"description": "The arguments to pass to the target being run.",
"default": ""
},
"createTunnel": {
"type": "boolean",
"description": "Enable to create a public port tunnel back to SSL launch URL",
"default": false
},
"tunnelName": {
"type": "string",
"description": "The prefix name of the public port tunnel",
"default": "mytunnelname"
},
"executablePath": {
"type": "string",
"description": "An absolute or relative path to the executable.",
"default": ""
},
"workingDirectory": {
"type": "string",
"description": "Sets the working directory of the command."
},
"launchBrowser": {
"type": "boolean",
"description": "Set to true if the browser should be launched.",
"default": false
},
"launchUrl": {
"type": "string",
"description": "The relative URL to launch in the browser."
},
"environmentVariables": {
"type": "object",
"description": "Set the environment variables as key/value pairs.",
"additionalProperties": {
"type": "string"
}
},
"applicationUrl": {
"type": "string",
"description": "A semi-colon delimited list of URL(s) to configure for the web server."
},
"nativeDebugging": {
"type": "boolean",
"description": "Set to true to enable native code debugging.",
"default": false
},
"externalUrlConfiguration": {
"type": "boolean",
"description": "Set to true to disable configuration of the site when running the Asp.Net Core Project profile.",
"default": false
},
"use64Bit": {
"type": "boolean",
"description": "Set to true to run the 64 bit version of IIS Express, false to run the x86 version.",
"default": true
},
"ancmHostingModel": {
"enum": [ "InProcess", "OutOfProcess" ],
"description": "Specifies the hosting model to use when running ASP.NET core projects in IIS and IIS Express.",
"default": false
},
"sqlDebugging": {
"type": "boolean",
"description": "Set to true to enable debugging of SQL scripts and stored procedures.",
"default": false
},
"jsWebView2Debugging": {
"type": "boolean",
"description": "Set to true to enable the JavaScript debugger for Microsoft Edge (Chromium) based WebView2.",
"default": false
},
"leaveRunningOnClose": {
"type": "boolean",
"description": "Set to true to leave the IIS application pool running when the project is closed.",
"default": false
},
"remoteDebugEnabled": {
"type": "boolean",
"description": "Set to true to have the debugger attach to a process on a remote computer.",
"default": false
},
"remoteDebugMachine": {
"type": "string",
"description": "The name and port number of the remote machine in name:port format."
},
"authenticationMode": {
"enum": [ "None", "Windows" ],
"description": "The authentication scheme to use when connecting to the remote computer.",
"default": "None"
},
"hotReloadEnabled": {
"type": "boolean",
"description": "Set to true to enable applying code changes to the running application.",
"default": true
}
}
}
},
"properties": {
"profiles": {
"type": "object",
"description": "A list of debug profiles",
"additionalProperties": {
"$ref": "#/definitions/profile"
}
},
"iisSettings": {
"type": "object",
"description": "IIS and IIS Express settings",
"allOf": [ { "$ref": "#/definitions/iisSettingContent" } ]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment