Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Alternative for Environment TagHeper domain #567

Closed
@vkichline

Description

@vkichline

I see this pattern in the Web Application template's _ValidationScriptsPartial.cshtml:

<environment names="Development">
       …
</environment>
<environment names="Staging,Production">
       …
</environment>

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:

<environment names="Development">
       …
</environment>
<environment names="!Development">
       …
</environment>

…or:

<environment names="Development">
       …
<else>
       …
</environment>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions