2019 - 2017
1- Close Visual Studio 2019 2- Start regedit.exe and select the node HKEY_USERS 3- File > Load Hive, navigate to %localappdata%\Microsoft\VisualStudio
you will see a folder writes a version ex 16.0_83f6bcec, enter in, there you will find privateregistry.bin, select it and click open. 4- Regedit will ask you for a base name (is temporary) so give anything like word test 5- you will find the key test @ HKEY_USERS\test, browse at HKEY_USERS\test\Software\Microsoft\VisualStudio\16.0xxxxx\Debugger
Create a new DWORD (32bit), name it DisableAttachSecurityWarning and set the value to 1. 6- Go back to tree and select the HKEY_USERS**test** then File > Unload hive
src - https://www.davici.nl/blog/disable-visual-studio-2019-iis-security-attach-warning ref - https://stackoverflow.com/a/41122603
older
make sure Visual Studio is not running when changing the registry key or it will be overwritten on exit with the old value
Change (or create) the following registry key to 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Visual Studio 2008
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger\DisableAttachSecurityWarning
//Visual Studio 2010
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger\DisableAttachSecurityWarning
//Visual Studio 2012
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\Debugger\DisableAttachSecurityWarning
//Visual Studio 2013
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\Debugger\DisableAttachSecurityWarning
//Visual Studio 2015
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\Debugger\DisableAttachSecurityWarning
src - https://stackoverflow.com/a/2026878
–
VS addons
[101,163 installs] ReAttach [5,970 installs] Entrian Attach: Auto-Attach the debugger at process start (paid) [shortcut for old VS versions as Reattach on VS2019] Visual Commander (howto)
–
get reattach button to toolbar - https://stackoverflow.com/a/31649987
origin - https://www.pipiscrew.com/?p=18374 disable-visual-studio-attach-security-warning-when-debugging-iis