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

Visual Studio Code – How to create WinUI3 GUI in PowerShell?

The Goal Creating and rendering a simple WinUI3 GUI in PowerShell 7.5 which is based on .NET 9. Nothing complicated, just a window and a button in it, such as this XAML <?xml version="1.0" encoding="utf-8"?> <Window x:Class="App1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:App1"…

VIEW QUESTION
Back To Top
Search