title: Why is Windows Defender blocking my C# Application when it sets an Autostart?
body: <p>I'm using the following code to set an Autostart of my Application:</p>
  
  <pre><code>using (RegistryKey rk = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true))
  {
             rk.SetValue("Application", Application.ExecutablePath); //add autostart
  }
  </code></pre>
  
  <p>When i compile it my Windows Defender instantly deletes the File because it found "Trojan:Win32/Bearfoos.A!ml" and "Trojan:Win32/Azden.A!cl"  </p>
  
  <p>I've have already tried to remove those lines without success. This is one of the easy ways to create an autostart application, so i would want to do it.</p>