79459701

Date: 2025-02-22 13:48:01
Score: 2
Natty:
Report link

In Visual Studio 2022 and .net core 8 using the Properties/launchSettings.json worked best for me.

For dockerized applications this section is generated: enter image description here

Adding httpPort and sslPort worked like a charm:

"Container (Dockerfile)": {
  "commandName": "Docker",
  "launchBrowser": true,
  "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
  "environmentVariables": {
    "ASPNETCORE_HTTP_PORTS": "8080"
  },
  "httpPort": 8082,
  "sslPort": 8083,
  "useSSL": true,
  "publishAllPorts": true
}
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (1): worked like a charm
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: F. Markus