Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Describe the bug
Running Angular spa template with
Note: It works fine when publishing and running with
Sdk version 3.0.100
@ryanbrandenburg, please add more details if I missed anything
So, it doesn't respect it because of https://github.com/aspnet/AspNetCore/blob/master/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/Properties/launchSettings.json#L31, but if you remove that line then you have the problem that running
release/debug != production/development. They are orthogonal.
The reason this happens is because you are doing "dotnet run" and that picks up the environment from launchSettings.json, that behavior is expected.
You can run your "Release" app in "Development" and your "Debug" app in "Production".