IIS secured local debugging

Download and run this:
https://github.com/mwanchap/configs/blob/master/SetupLocalhostCerts.ps1

For each project:

  • Open Visual Studio
  • In Solution Explorer, select the web project and press F4 to open properties (not right click -> Properties, that’s a different set of properties for some reason)
  • Set “SSL Enabled” = True
  • Copy the SSL URL
  • Right click on the project name in Solution Explorer again and open Properties from there
  • Select “Web” section
  • Paste SSL URL into “Project Url"
TODO: script to enable edit-and-continue for local IIS

Credit:
PS script derived from a similar one by camieleggermont at https://gist.github.com/camieleggermont/5b2971a96e80a658863106b21c479988
Enabling Edit-and-Continue for Local IIS from https://stackoverflow.com/a/50509545/2939759