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

Azure B2C / WPF – Handling a failed MFA verification flow

I have the following client code to fetch a token from Azure B2C endpoint: public static async Task<AuthenticationResult> AcquireTokenAsync(this IPublicClientApplication publicClientApp) { try { var accounts = await publicClientApp.GetAccountsAsync(); return await Task.Run(() => publicClientApp .AcquireTokenInteractive(apiScopes) .WithAccount(accounts.FirstOrDefault()) .WithPrompt(Prompt.ForceLogin) .ExecuteAsync()); } catch…

VIEW QUESTION
Back To Top
Search