ASP.Net Core launch website via Visual Studio vs. Command Line

Environment: Microsoft Visual Studio Community 2019 Version 16.3.9 VisualStudio.16.Release/16.3.9+29509.3 Microsoft .NET Framework Version 4.8.03752 I created an EMPTY ASP.NET Core 3.0 web project (just learning .Net Core – so trying to keep things simple). When I build the project (Configuration = Debug) and then launch the website, the Visual Studio output window shows the following:…

How can I setup attribute based routing in ASP.NET Core 3.0

In my startup.cs class I have: app.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); My controller currently looks like so: [Microsoft.AspNetCore.Components.Route(“api/my-test”)] public class MyTestController : ControllerBase { [HttpGet] [Route(“{confirmationCode}”)] public async Task<IActionResult> Get(string confirmationCode) { return Ok($”The confirmation code is: {confirmationCode}”); } } How can I call the Get action on my MyTestController and get access to…