Is launchSettings.json used when running ASP.NET 5 apps from the command line on Mac?

后端 未结 3 631
有刺的猬
有刺的猬 2021-02-18 18:34

I am developing an ASP.NET 5 Web API app using Visual Studio code on Mac. I manually modified my Properties/launchSettings.json file to set environment to Sta

3条回答
  •  野性不改
    2021-02-18 19:19

    On a Mac, using Terminal, type:

    export ASPNETCORE_ENVIRONMENT=Development && dotnet run
    

    Requirements:

    • .NET Core (rc2)
    • .NET command line interface

提交回复
热议问题