I wand to use a variable with two different path when it is debug and release mode in .cshmtl file
I have tried using #debug and HttpContext.Current.IsDebuggingEnabled but it is not working.
debug is not working in cshtl
I have also tried to implementing @if(Html.IsReleaseBuild())
@{
ViewData["Title"] = "Admin Login Page";
#if DEBUG
public const bool IS_DEBUG = true;
#else
public const bool IS_DEBUG = false;
#endif
}
@if (HttpContext.Current.IsDebuggingEnabled)
{
// Debug mode enabled. Your code here. Texts enclosed with <text> tag
}
<app>Loading...</app>
<script src="~/dist/vendor.min.js" asp-append-version="true"></script>
@section scripts {
<script src="~/dist/main-client.min.js" asp-append-version="true">
</script>
}