Skip to content

Commit 9b331c0

Browse files
committed
WinUI: Changed the way to detect a WinUI application
1 parent a350a9d commit 9b331c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PropertyGroup Condition="$(TargetFramework.StartsWith('uap'))">
1515
<DefineConstants>$(DefineConstants);UWP;WINDOWS_MODERN</DefineConstants>
1616
</PropertyGroup>
17-
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-windows10'))">
17+
<PropertyGroup Condition="$(UseWinUI) == true">
1818
<DefineConstants>$(DefineConstants);WINUI;WINDOWS_MODERN</DefineConstants>
1919
</PropertyGroup>
2020
<PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0'">

src/LibVLCSharp/LibVLCSharp.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ LibVLC needs to be installed separately, see VideoLAN.LibVLC.* packages.</Descri
7373
<PackageReference Include="Microsoft.Bcl.Async" Version="1.0.168" />
7474
</ItemGroup>
7575

76-
<ItemGroup Condition="$(TargetFramework.StartsWith('uap')) Or $(TargetFramework.StartsWith('net6.0-windows10')) ">
76+
<ItemGroup Condition="$(TargetFramework.StartsWith('uap')) Or $(UseWinUI) == true">
7777
<Compile Include="Platforms\Windows\**\*.cs" />
7878
<PackageReference Include="SharpDX.Direct3D11" Version="4.2.0" />
7979
<Page Include="Themes\Generic.xaml">
@@ -82,7 +82,7 @@ LibVLC needs to be installed separately, see VideoLAN.LibVLC.* packages.</Descri
8282
</Page>
8383
</ItemGroup>
8484

85-
<ItemGroup Condition="$(TargetFramework.StartsWith('net6.0-windows10')) ">
85+
<ItemGroup Condition="$(UseWinUI) == true">
8686
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.1.1" />
8787
</ItemGroup>
8888

@@ -104,4 +104,4 @@ LibVLC needs to be installed separately, see VideoLAN.LibVLC.* packages.</Descri
104104
<BuildOutputInPackage Condition="$(TargetFramework.Contains('monoandroid'))" Include="$(OutputPath)LibVLCSharp.Android.AWindow.dll" />
105105
</ItemGroup>
106106
</Target>
107-
</Project>
107+
</Project>

0 commit comments

Comments
 (0)