Czytanie this post tutaj na stackoverflow chcesz załadować różne css podczas kompilacji w trybie zwolnienia.Kompilacja warunkowa nie działa
Kod:
@{ #if (Debug)
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
#else
<link href="@Url.Content("~/Content/Site-min.css")" rel="stylesheet" type="text/css" />
#endif
}
Próba 2
@{ #if (Debug) }
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
@{ #else }
<link href="@Url.Content("~/Content/Site-min.css")" rel="stylesheet" type="text/css" />
@{ #endif }
Próbowałem debugować wielkimi literami Ale żadna zmiana nie ma wpływu podczas kompilacji Debug do wydania
http://stackoverflow.com/questions/4696175/razor-view-engine-how-to-enter-preprocessorif-debug/4697570#4697570 Jak na ten temat? – takepara