Skip to content

Commit

Permalink
Merge pull request unoplatform#6129 from unoplatform/dev/jela/fix-uwp…
Browse files Browse the repository at this point in the history
…-codegen

fix: Invalid warning when building with UWP and referencing the Uno.UI package
  • Loading branch information
mergify[bot] authored Jun 2, 2021
2 parents 6a25c39 + 383e553 commit 2b05467
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ public void Execute(GeneratorExecutionContext context)
// Debugger.Launch();
//}

var gen = new XamlCodeGeneration(context);

if (PlatformHelper.IsValidPlatform(context))
{
var gen = new XamlCodeGeneration(context);
var genereratedTrees = gen.Generate();

foreach (var tree in genereratedTrees)
Expand Down

0 comments on commit 2b05467

Please sign in to comment.