WinJS are there #DEBUG or #RELEASE directives?
问题 I would like to exclude some code when using release vs debug. Basically I have an internal admin section for testing that I don't to ever make it into the app store by accident :) Ideally, I would just be able to do something like this: #IF DEBUG <div id="appBar" data-win-control="WinJS.UI.AppBar"> <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdAdmin', label:'Admin', section:'global' }"> </button> </div> #ENDIF 回答1: See here. There is a nuget package here to