skip to Main Content

Visual Studio Code – How to conditionally transform XAML at build time using XSLT to mirror C# preprocessor directives?

I use C# preprocessor directives extensively while developing. I define them either directly in .cs files or globally in the .csproj: <PropertyGroup> <DefineConstants>fix_issue_001;fix_issue_002;</DefineConstants> </PropertyGroup> Or via command line as described here. Then I use them to compartmentalize code: #if fix_issue_001…

VIEW QUESTION
Back To Top
Search