Skip to content
代码片段 群组 项目
提交 d39ed09c 编辑于 作者: Artak's avatar Artak 提交者: GitHub
浏览文件

Auto-generate random port and proper project settings for the server project (#18842)

上级 f5f51f5f
No related branches found
No related tags found
无相关合并请求
......@@ -107,6 +107,46 @@
"datatype": "bool",
"defaultValue": "false",
"description": "If specified, includes an ASP.NET Core host for the Blazor app."
},
"HttpPort": {
"type": "parameter",
"datatype": "integer",
"description": "Port number to use for the HTTP endpoint in launchSettings.json."
},
"HttpPortGenerated": {
"type": "generated",
"generator": "port"
},
"HttpPortReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "HttpPort",
"fallbackVariableName": "HttpPortGenerated"
},
"replaces": "8080"
},
"HttpsPort": {
"type": "parameter",
"datatype": "integer",
"description": "Port number to use for the HTTPS endpoint in launchSettings.json. This option is only applicable when the parameter no-https is not used (no-https will be ignored if either IndividualAuth or OrganizationalAuth is used)."
},
"HttpsPortGenerated": {
"type": "generated",
"generator": "port",
"parameters": {
"low": 44300,
"high": 44399
}
},
"HttpsPortReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "HttpsPort",
"fallbackVariableName": "HttpsPortGenerated"
},
"replaces": "44300"
}
},
"tags": {
......
......@@ -20,7 +20,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Company.WebApplication1": {
"BlazorWasm-CSharp.Server": {
"commandName": "Project",
"launchBrowser": true,
//#if(RequiresHttps)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册