How to set start page in dotnet core web api?

后端 未结 9 585
广开言路
广开言路 2021-01-31 07:56

I try to build a web application with dotnet core web api,but i do not know how to set index.html as start page which can be done with dotnet framework web api easily. And i tri

9条回答
  •  既然无缘
    2021-01-31 08:10

    In Properties/launchSettings.json you can define the launchUrl

    "profiles": {
        "IIS Express": {
            "commandName": "IISExpress",
            "launchBrowser": true,
            "launchUrl": "",
            "environmentVariables": {
                "ASPNETCORE_ENVIRONMENT": "Development"
            }
        }
    }
    

提交回复
热议问题