asp.net - Environment tag helper -


i'm working visual studio 15 rc, , noticed in _layout.cshtml, there 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 indicate that want staging build css files cdn?

if want specify staging environment build :

  • open project properties
  • select debug tab
  • in environment variables section, if variable named aspnet_env doesn't exist add clicking add button. after set value of variable staging double-clicking in cell.

enter image description here


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -