Skip to content

Instantly share code, notes, and snippets.

@bradwilson
Forked from marcind/gist:9512656
Last active November 11, 2020 14:50
Show Gist options
  • Save bradwilson/7f0a34e130c9bc90fdf7 to your computer and use it in GitHub Desktop.
Save bradwilson/7f0a34e130c9bc90fdf7 to your computer and use it in GitHub Desktop.
Disable "Always start when debugging" and disable launching browser for all projects in a solution
# Execute this in NuGet PowerShell console
$projects = get-project -all | ?{ $_.Properties | ?{ $_.Name -eq "WebApplication.StartWebServerOnDebug" } }
$projects | %{ $_.Properties | ?{ $_.Name -eq "WebApplication.StartWebServerOnDebug"} | %{ $_.Value = $False } }
$projects | %{ $_.Properties | ?{ $_.Name -eq "WebApplication.DebugStartAction"} | %{ $_.Value = 4 } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment