In ASP.NET Core there are html tags like
<environment include="Staging">THIS IS STAGING</environment>
But I'm a little confused working in framework, I was trying to do something like
<div class=@(System.Environment.GetEnvironmentVariable() == "Staging" ? "RED" : "GREY"")>
But realised an environment variable is a child of environment, and the above method is looking for a value by its key.
I'm not actually sure I want "environment" anyway... it's actually a Configuration defined in the solution configurations box?
And then I realised I don't want "if staging else" statements in my html, I just want different html deployed like I would with the different web.config files, so how do I tackle this issue in framework? Do I use transforms like the config files for each cshtml view?