Assuming .NET Core 2.2.6, and perhaps in other versions, if you make a "ASP.NET Core Web Application" and specifically a "Web Application (Model-View-Controller)" in Visual Studio 2019 you will see in _Layout.cshtml stuff like this for looping in a partial and showing or hiding stuff based on the environment set in launchSettings.json beneath Properties in the token project made with the new solution.
- <partial name="_CookieConsentPartial" />
- <environment include="Development">
<p>Hello World</p>
</environment>
- <environment exclude="Development">
<p>Hello Reality</p>
</environment>
No comments:
Post a Comment