title: ASP.NET Core disable Windows Authentication
body: <p>I have .NET Core MVC web application where during creation I set Windows authentication. Now I want to disable Windows authentication and enable anonymous authentication (I have my own authentication mechanism). Here is what I have set in my config file</p>
  
  <blockquote>
    <p>.vs\config\applicationhost.config</p>
  </blockquote>
  
  <pre><code>  &lt;security&gt;
      &lt;authentication&gt;
        &lt;anonymousAuthentication enabled="true" /&gt;
        &lt;windowsAuthentication enabled="false" /&gt;
      &lt;/authentication&gt;
    &lt;/security&gt;
  </code></pre>
  
  <p>My problem is that when I reopen the solution and run it, the config is changing to:</p>
  
  <pre><code>  &lt;security&gt;
      &lt;authentication&gt;
        &lt;anonymousAuthentication enabled="false" /&gt;
        &lt;windowsAuthentication enabled="true" /&gt;
      &lt;/authentication&gt;
    &lt;/security&gt;
  </code></pre>
  
  <p>How it's possible that something is changing the config and what should I do to prevent this change?</p>