How can I specify using dotnet cli to run my web app using specific configurations. I know hosting.json can be used but I did not find any documentation how to do this and how this relates to the dotnet cli.
相关问题
- Can I use MvcJsonOptions configured during Startup
- Singleton with AsyncLocal vs Scope Service
- gRPC client do not dispose Channel
- Unable to resolve service for type 'Microsoft.
- Which encryption algorithm do we use in Asp.net 5
相关文章
- EF Core 'another instance is already being tra
- Re-target .NET Core to net471, net 472
- How to replace Middleware in integration tests pro
- Why CsvHelper not reading from MemoryStream?
- How to define function that returns html in asp.ne
- Should I use xUnitPublisher or xUnitBuilder after
- How to log ASP.NET Core input JSON serialization e
- What's the difference between ASP.NET Core Hos
Try
.UseUrls
on Program.cs with specific port.Look at this sample: https://github.com/aspnet/Security/blob/dev/samples/CookieSample/Program.cs#L11
Tweaked for command line:
Then call
dotnet run server.urls=http://localhost:5001/