title: Why does the environment tag helper work on my machine but not on Azure?
body: <p>This is a section on our _Layout.cshtml that I'm about to throw out the window.</p>
  
  <pre class="lang-razor prettyprint-override"><code>&lt;!-- CSS Scripts --&gt;
      &lt;environment include="Development"&gt;
          &lt;script src="/ts/CS.js" asp-append-version="true" abp-ignore-src-modification="true"&gt;&lt;/script&gt;
          &lt;script src="/ts/CS.Url.js" asp-append-version="true" abp-ignore-src-modification="true"&gt;&lt;/script&gt;
          &lt;script src="/ts/CS.Settings.js" asp-append-version="true" abp-ignore-src-modification="true"&gt;&lt;/script&gt;
          &lt;script src="/ts/CS.Alert.js" asp-append-version="true" abp-ignore-src-modification="true"&gt;&lt;/script&gt;
          &lt;script src="/ts/CS.Modal.js" asp-append-version="true" abp-ignore-src-modification="true"&gt;&lt;/script&gt;
      &lt;/environment&gt;
      &lt;environment include="Staging,Production"&gt;
          &lt;script abp-src="/ts/CS.js" asp-append-version="true"&gt;&lt;/script&gt;
          &lt;script abp-src="/ts/CS.Url.js" asp-append-version="true"&gt;&lt;/script&gt;
          &lt;script abp-src="/ts/CS.Settings.js" asp-append-version="true"&gt;&lt;/script&gt;
          &lt;script abp-src="/ts/CS.Alert.js" asp-append-version="true"&gt;&lt;/script&gt;
          &lt;script abp-src="/ts/CS.Modal.js" asp-append-version="true"&gt;&lt;/script&gt;
      &lt;/environment&gt;
  </code></pre>
  
  <p>We use the environment tag helper in some spots to either use .min.js or .js, useful for debugging. I can see that if I personally set the <code>ASPNETCORE_ENVIRONMENT</code> variable from "Development" to "Production" that the tag helper continues to render the right content.</p>
  
  <p>However, when I then push this through to be hosted on Azure - the content is missing completely. </p>
  
  <p>Things I've tried:</p>
  
  <ul>
  <li>Tried changing the value in azure config - no change.</li>
  <li>Originally we had <code>names</code>, changed to <code>include</code> - no change. Still works on dev machine.</li>
  </ul>
  
  <p>What is going on here?! Is this not what other people do?</p>