Skip to content

Commit

Permalink
chore: fix uwp build
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Oct 7, 2024
1 parent b8b13ab commit ff7c4c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/AddIns/Uno.WinUI.Graphics3DGL/GLCanvasElement.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.Extensions.Logging;
using Microsoft.UI.Dispatching;
using Silk.NET.OpenGL;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
Expand All @@ -12,6 +11,12 @@
using Uno.Logging;
using Window = Microsoft.UI.Xaml.Window;

#if !UNO_UWP_BUILD
using Microsoft.UI.Dispatching;
#else
using DispatcherQueue = Windows.System;
#endif

#if WINAPPSDK
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.WindowsRuntime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
</When>
</Choose>

<PropertyGroup>
<DefineConstants Condition="$(UNO_UWP_BUILD) == true">$(DefineConstants);UNO_UWP_BUILD</DefineConstants>
</PropertyGroup>

<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);angle/**</DefaultItemExcludes>
</PropertyGroup>
Expand Down

0 comments on commit ff7c4c7

Please sign in to comment.