I'm working with Visual Studio 15 RC, and I noticed in the _Layout.cshtml, there is a new environment
tag helper:
<environment names="Development">
<link rel="stylesheet" href="~/css/bootstrap.css" />
</environment>
<environment names="Staging,Production">
<link rel="stylesheet" href="//ajax.aspnetcdn.com/ajax/bootstrap/3.0.0/css/bootstrap.min.css"
asp-fallback-href="~/lib/bootstrap/css/bootstrap.min.css"
asp-fallback-test-class="hidden" asp-fallback-test-property="visibility" asp-fallback-test-value="hidden" />
</environment>
How would I indicate that that I want a Staging
build to get the CSS files from the CDN?
If you want to specify Staging environment for your build :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With