aspnet

A 2-post collection

Debug ASP.NET Core with Multiple Browsers from VS Code on MacOS

I recently needed to launch different browsers for debugging a .NET Core app in Visual Studio Code on a MacOS. A quick Google search yielded how to launch different browsers from VS Code for debugging ASP.NET Core, but this was Windows centric. While the changes below are simple, I thought I would document them anyway. Here is the whole launch.json file for reference. The important bits are in the osx sections. { // Use IntelliSense to find out which attributes exist for C# debugging // Use hover for the description of the existing attributes // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md "version": "0.2.0", "configurations": [ { "name": "DemoWeb - Chrome", "type": "coreclr", "request": "launch", "preLaunchTask"...


Testing SSL in ASP.NET Core on a Mac

Creating the Project Back in October 2016, Shawn Wildermuth published Testing SSL in ASP.NET Core. I came across this post while trying to get HTTPS working with ASP.NET Core on a Mac. Sadly, this post was specific to Windows. However, I want this to work so I can make some progress on Office Addin development using ASP.NET Core. What follows is more of a reminder to myself of how to get this working a Mac again, but let me know if this helps you. Create an ASP.NET Core MVC Project To start, create a new folder and then create a new MVC project. Open a terminal, or use Visual Studio Codes's terminal window, and type the...