Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Alternative for Environment TagHeper domain #5671
From @vkichline on October 8, 2015 22:32
I see this pattern in the Web Application template's _ValidationScriptsPartial.cshtml:
This pattern above seems brittle; if I add a new environment setting, I have a lot of searching and modification to do.
I wish I had something like:
Copied from original issue: aspnet/Razor#567
Another option to consider:
Another alternative to consider would be something like:
<environment names="Development"> … </environment> <environment excludeNames="Development"> … </environment>
And you can't set both
@DamianEdwards thoughts on this? I think this could clean up the default templates. And, of course, Hubbup.