239 lines
7.1 KiB
JSON
239 lines
7.1 KiB
JSON
{
|
|
"$schema": "http://json.schemastore.org/template",
|
|
"author": "Microsoft",
|
|
"classifications": ["Web", "WebAPI"],
|
|
"name": "ASP.NET Core Web API",
|
|
"generatorVersions": "[1.0.0.0-*)",
|
|
"description": "A project template for creating an ASP.NET Core application with an example Controller for a RESTful HTTP service. This template can also be used for ASP.NET Core MVC Views and Controllers.",
|
|
"groupIdentity": "Microsoft.Web.WebApi",
|
|
"precedence": "100",
|
|
"identity": "Microsoft.Web.WebApi.CSharp",
|
|
"shortName": "webapi",
|
|
"thirdPartyNotices": "https://aka.ms/template-3pn",
|
|
"tags": {
|
|
"language": "C#",
|
|
"type": "project"
|
|
},
|
|
"sourceName": "Company.WebApplication1",
|
|
"preferNameDirectory": true,
|
|
"guids": [ "53bc9b9d-9d6a-45d4-8429-2a2761773502" ],
|
|
"sources": [
|
|
{
|
|
"modifiers": [
|
|
{
|
|
"condition": "(!IncludeLaunchSettings && !WindowsAuth)",
|
|
"exclude": [
|
|
"Properties/launchSettings.json"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"symbols": {
|
|
"auth": {
|
|
"type": "parameter",
|
|
"datatype": "choice",
|
|
"choices": [
|
|
{
|
|
"choice": "None",
|
|
"description": "No authentication"
|
|
},
|
|
{
|
|
"choice": "SingleOrg",
|
|
"description": "Organizational authentication for a single tenant"
|
|
},
|
|
{
|
|
"choice": "Windows",
|
|
"description": "Windows authentication"
|
|
}
|
|
],
|
|
"defaultValue": "None",
|
|
"description": "The type of authentication to use"
|
|
},
|
|
"AADInstance": {
|
|
"type": "parameter",
|
|
"datatype": "string",
|
|
"defaultValue": "https://login.microsoftonline.com/",
|
|
"replaces": "https:////login.microsoftonline.com/",
|
|
"description": "The Azure Active Directory instance to connect to (use with SingleOrg auth)."
|
|
},
|
|
"Audience": {
|
|
"type": "parameter",
|
|
"datatype": "string",
|
|
"replaces": "https:////qualified.domain.name/Company.WebApplication1",
|
|
"description": "The AppIdUrl for the project (use with SingleOrg auth)."
|
|
},
|
|
"ClientId": {
|
|
"type": "parameter",
|
|
"datatype": "string",
|
|
"replaces": "11111111-1111-1111-11111111111111111",
|
|
"description": "The Client ID for this project (use with SingleOrg auth)."
|
|
},
|
|
"Domain": {
|
|
"type": "parameter",
|
|
"datatype": "string",
|
|
"replaces": "qualified.domain.name",
|
|
"description": "The domain owning the directory (use with SingleOrg auth)."
|
|
},
|
|
"TenantId": {
|
|
"type": "parameter",
|
|
"datatype": "string",
|
|
"replaces": "22222222-2222-2222-2222-222222222222",
|
|
"description": "The TenantId ID of the directory to connect to (use with SingleOrg auth)."
|
|
},
|
|
"OrgReadAccess": {
|
|
"type": "parameter",
|
|
"datatype": "bool",
|
|
"defaultValue": "false",
|
|
"description": "Whether or not to allow this application read access to the directory (only applies to SingleOrg auth)."
|
|
},
|
|
"UserSecretsId": {
|
|
"type": "parameter",
|
|
"datatype": "string",
|
|
"replaces": "aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502",
|
|
"defaultValue": "aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502",
|
|
"description": "The ID to use for secrets (use with OrgReadAccess or Individual auth)."
|
|
},
|
|
"IncludeLaunchSettings": {
|
|
"type": "parameter",
|
|
"datatype": "bool",
|
|
"defaultValue": "false",
|
|
"description": "Whether to include launchSettings.json in the generated template."
|
|
},
|
|
"HttpsPort": {
|
|
"type": "parameter",
|
|
"datatype": "integer",
|
|
"description": "Port number to use to configure SSL in launchSettings.json."
|
|
},
|
|
"HttpsPortGenerated": {
|
|
"type": "generated",
|
|
"generator": "port",
|
|
"parameters": {
|
|
"low": 44300,
|
|
"high": 44399
|
|
}
|
|
},
|
|
"HttpsPortReplacer": {
|
|
"type": "generated",
|
|
"generator": "coalesce",
|
|
"parameters": {
|
|
"sourceVariableName": "HttpsPort",
|
|
"fallbackVariableName": "HttpsPortGenerated"
|
|
},
|
|
"replaces": "43434"
|
|
},
|
|
"KestrelPort": {
|
|
"type": "parameter",
|
|
"datatype": "integer",
|
|
"description": "Port number to use to configure Kestrel in launchSettings.json."
|
|
},
|
|
"KestrelPortGenerated": {
|
|
"type": "generated",
|
|
"generator": "port"
|
|
},
|
|
"KestrelPortReplacer": {
|
|
"type": "generated",
|
|
"generator": "coalesce",
|
|
"parameters": {
|
|
"sourceVariableName": "KestrelPort",
|
|
"fallbackVariableName": "KestrelPortGenerated"
|
|
},
|
|
"replaces": "5000"
|
|
},
|
|
"IISExpressPort": {
|
|
"type": "parameter",
|
|
"datatype": "integer",
|
|
"description": "Port number to use to configure IIS Express in launchSettings.json."
|
|
},
|
|
"IISExpressPortGenerated": {
|
|
"type": "generated",
|
|
"generator": "port"
|
|
},
|
|
"IISExpressPortReplacer": {
|
|
"type": "generated",
|
|
"generator": "coalesce",
|
|
"parameters": {
|
|
"sourceVariableName": "IISExpressPort",
|
|
"fallbackVariableName": "IISExpressPortGenerated"
|
|
},
|
|
"replaces": "55556"
|
|
},
|
|
"OrganizationalAuth": {
|
|
"type": "computed",
|
|
"value": "(auth == \"SingleOrg\")"
|
|
},
|
|
"WindowsAuth": {
|
|
"type": "computed",
|
|
"value": "(auth == \"Windows\")"
|
|
},
|
|
"SingleOrgAuth": {
|
|
"type": "computed",
|
|
"value": "(auth == \"SingleOrg\")"
|
|
},
|
|
"NoAuth": {
|
|
"type": "computed",
|
|
"value": "(!SingleOrgAuth && !WindowsAuth)"
|
|
},
|
|
"RequiresHttps": {
|
|
"type": "computed",
|
|
"value": "(OrganizationalAuth)"
|
|
},
|
|
"IncludeApplicationInsights": {
|
|
"type": "parameter",
|
|
"datatype": "bool",
|
|
"defaultValue": "false",
|
|
"description": "Whether or not to include Application Insights in the project"
|
|
},
|
|
"TargetFrameworkOverride": {
|
|
"type": "parameter",
|
|
"description": "Overrides the target framework",
|
|
"replaces": "TargetFrameworkOverride",
|
|
"datatype": "string",
|
|
"defaultValue": ""
|
|
},
|
|
"Framework": {
|
|
"type": "parameter",
|
|
"description": "The target framework for the project.",
|
|
"datatype": "choice",
|
|
"choices": [
|
|
{
|
|
"choice": "netcoreapp1.0",
|
|
"description": "Target netcoreapp1.0"
|
|
},
|
|
{
|
|
"choice": "netcoreapp1.1",
|
|
"description": "Target netcoreapp1.1"
|
|
}
|
|
],
|
|
"defaultValue": "netcoreapp1.1"
|
|
},
|
|
"copyrightYear": {
|
|
"type": "generated",
|
|
"generator": "now",
|
|
"replaces": "1975",
|
|
"parameters": {
|
|
"format": "yyyy"
|
|
}
|
|
},
|
|
"skipRestore": {
|
|
"type": "parameter",
|
|
"datatype": "bool",
|
|
"description": "If specified, skips the automatic restore of the project on create.",
|
|
"defaultValue": "false"
|
|
}
|
|
},
|
|
"primaryOutputs": [ { "path": "Company.WebApplication1.csproj" } ],
|
|
"defaultName": "WebApplication1",
|
|
"postActions": [
|
|
{
|
|
"condition": "(!skipRestore)",
|
|
"description": "Restore NuGet packages required by this project.",
|
|
"manualInstructions": [
|
|
{ "text": "Run 'dotnet restore'" }
|
|
],
|
|
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
|
|
"continueOnError": true
|
|
}
|
|
]
|
|
}
|