Created
December 16, 2016 01:37
-
-
Save OdeToCode/374730d998a4255879991bc3d70f5f0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<environment names="Development"> | |
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" /> | |
<link rel="stylesheet" href="~/css/site.css" /> | |
</environment> | |
<environment names="Staging,Production"> | |
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/css/bootstrap.min.css" | |
asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css" | |
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" /> | |
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" /> | |
</environment> | |
<environment names="Development"> | |
<script src="~/lib/jquery/dist/jquery.js"></script> | |
<script src="~/lib/bootstrap/dist/js/bootstrap.js"></script> | |
<script src="~/js/site.js" asp-append-version="true"></script> | |
</environment> | |
<environment names="Staging,Production"> | |
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js" | |
asp-fallback-src="~/lib/jquery/dist/jquery.min.js" | |
asp-fallback-test="window.jQuery"> | |
</script> | |
<script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/bootstrap.min.js" | |
asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js" | |
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"> | |
</script> | |
<script src="~/js/site.min.js" asp-append-version="true"></script> | |
</environment> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're right, there's no advantage.
names
was the only option back then, now we should use<environment include="Development">
and<environment exclude="Development">