Skip to content

Commit 875137d

Browse files
fix: add windows net6 to uno winui (#3083)
* fix: add windows net6 to uno winui * Update ReactiveUI.Uno.WinUI.csproj * Update ReactiveUI.Uno.WinUI.csproj * fix add HAS_UNO_WINUI declaration * move HAS_UNO_WINUI to project file Co-authored-by: Chris Pulman <[email protected]>
1 parent 71b36f2 commit 875137d

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

src/ReactiveUI.Uno.WinUI/ReactiveUI.Uno.WinUI.csproj

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="MSBuild.Sdk.Extras">
22
<PropertyGroup>
3-
<TargetFrameworks>netstandard20;MonoAndroid11.0;Xamarin.iOS10;Xamarin.Mac20;net6.0-android;net6.0-ios;net6.0-macos</TargetFrameworks>
3+
<TargetFrameworks>netstandard20;MonoAndroid11.0;Xamarin.iOS10;Xamarin.Mac20;net6.0-android;net6.0-ios;net6.0-macos;net6.0-windows10.0.17763.0</TargetFrameworks>
44
<PackageId>ReactiveUI.Uno.WinUI</PackageId>
55
<PackageDescription>Contains the ReactiveUI platform specific extensions for Uno WinUI</PackageDescription>
66
<DefineConstants>$(DefineConstants);HAS_UNO;HAS_WINUI</DefineConstants>
@@ -11,6 +11,9 @@
1111
<PropertyGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
1212
<DefineConstants>$(DefineConstants);WASM</DefineConstants>
1313
</PropertyGroup>
14+
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-windows10'))">
15+
<DefineConstants>$(DefineConstants);HAS_UNO_WINUI</DefineConstants>
16+
</PropertyGroup>
1417

1518
<ItemGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) ">
1619
<!-- Hack to get around invalid version of Java.Interop -->
@@ -26,10 +29,15 @@
2629
<Compile Remove="Resources\**" />
2730
</ItemGroup>
2831

29-
<ItemGroup>
32+
<ItemGroup Condition=" !$(TargetFramework.StartsWith('net6.0-windows10')) ">
3033
<PackageReference Include="Uno.WinUI" Version="4.0.9" />
3134
</ItemGroup>
32-
35+
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-windows10'))">
36+
<DefineConstants>$(DefineConstants);HAS_UNO_WINUI</DefineConstants>
37+
</PropertyGroup>
38+
<ItemGroup Condition=" $(TargetFramework.StartsWith('net6.0-windows10')) ">
39+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
40+
</ItemGroup>
3341
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
3442
<PackageReference Include="Reactive.Wasm" Version="1.*" />
3543
</ItemGroup>

src/ReactiveUI.Uno/ActivationForViewFetcher.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
using System;
77
using System.Linq;
8-
using System.Reactive;
98
using System.Reactive.Linq;
109
using System.Reflection;
1110

src/ReactiveUI.Wpf/ReactiveUI.Wpf.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<None Include="..\ReactiveUI.Uwp\Rx\**\*.cs" LinkBase="Rx" />
1717
</ItemGroup>
1818

19-
<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) or $(TargetFramework) == 'net5.0-windows' or $(TargetFramework) == 'net6.0-windows' ">
19+
<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) or $(TargetFramework) == 'net6.0-windows' ">
2020
<Compile Include="..\ReactiveUI.Uwp\Rx\Concurrency\DispatcherScheduler.cs" LinkBase="Rx" />
2121
<Compile Include="..\ReactiveUI.Uwp\Rx\Internal\Constants.cs" LinkBase="Rx" />
2222
<Compile Include="..\ReactiveUI.Uwp\Rx\Linq\**\*.cs" LinkBase="Rx" Exclude="..\ReactiveUI.Uwp\Rx\Linq\ControlObservable.cs" />

0 commit comments

Comments
 (0)