I\'ve got a conditional compilation symbol I\'m using called \"RELEASE\", that I indicated in my project\'s properties in Visual Studio. I want some particular CSS to be app
You can use ViewBag instead of viewmodel (but viewmodel-like approach is better) :
Controller :
View :
@{ bool hideYoutubeVideos = ViewBag.hideYoutubeVideos ?? false; }
Usage :
@if (!hideYoutubeVideos) { hello youtube }
Also, be sure, that NIKITA_DEBUG variable exist in build tab of your project :