Using appsettings.json to configure Kestrel listen port Dotnet core 2 preview 2

前端 未结 5 1172
别跟我提以往
别跟我提以往 2020-12-08 10:07

From what I understand the correct way of setting listen ports for ASP Dotnet Core 2 preview 1/2 is by creating a Kestrel section in the appsettings.json in the following fo

5条回答
  •  眼角桃花
    2020-12-08 10:34

    I know that this is an old post but to run visual studio with kestrel.

    just edit the appsettings.json and add the config like this (tested with NetCore 2.0 and 2.1)

        "profiles" : {
            "Kestrel": {
              "commandName": "Project",
              "launchBrowser": true,
              "applicationUrl": "http://localhost:6969/"
            }
        }
    

提交回复
热议问题