.NET Core 2.0 BasePath Error
OK, in 1.X you could just add a base path to your applicationUrl in your launchOptions while running from command line, now it only works when using IIS.
in my launchSettings, changing my CLI profile from using
"applicationUrl": "http://localhost:5000/swagger"
to
"applicationUrl": "http://localhost:5000"
did the trick.
As @TanguyB said, you should change applicationUrl But then you may set
"launchUrl": "http://localhost:5000/swagger"
to run your application on Swagger page