Someone will find a solution for VS 2017, I tried to add the same key to version 15.0 without success ...
* Thanks to Ceridan, I put the whole solution here ... *
- First open RegEdit and load a private bush in HKEY_USERS, name it VS2017, for example

In the Beehive app, go to: Software> Microsoft> VisualStudio> 15.0_5f0953ca> Debugger.
Create a new DWORD value: DisableAttachSecurityWarning and set 1 on this.
Restart Visual Studio ant test it.
source
share