Skip to content

Commit

Permalink
fix: add windows net6 to uno winui (#3083)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
glennawatson and ChrisPulman authored Dec 4, 2021
1 parent 71b36f2 commit 875137d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
14 changes: 11 additions & 3 deletions src/ReactiveUI.Uno.WinUI/ReactiveUI.Uno.WinUI.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="MSBuild.Sdk.Extras">
<PropertyGroup>
<TargetFrameworks>netstandard20;MonoAndroid11.0;Xamarin.iOS10;Xamarin.Mac20;net6.0-android;net6.0-ios;net6.0-macos</TargetFrameworks>
<TargetFrameworks>netstandard20;MonoAndroid11.0;Xamarin.iOS10;Xamarin.Mac20;net6.0-android;net6.0-ios;net6.0-macos;net6.0-windows10.0.17763.0</TargetFrameworks>
<PackageId>ReactiveUI.Uno.WinUI</PackageId>
<PackageDescription>Contains the ReactiveUI platform specific extensions for Uno WinUI</PackageDescription>
<DefineConstants>$(DefineConstants);HAS_UNO;HAS_WINUI</DefineConstants>
Expand All @@ -11,6 +11,9 @@
<PropertyGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
<DefineConstants>$(DefineConstants);WASM</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-windows10'))">
<DefineConstants>$(DefineConstants);HAS_UNO_WINUI</DefineConstants>
</PropertyGroup>

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

<ItemGroup>
<ItemGroup Condition=" !$(TargetFramework.StartsWith('net6.0-windows10')) ">
<PackageReference Include="Uno.WinUI" Version="4.0.9" />
</ItemGroup>

<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-windows10'))">
<DefineConstants>$(DefineConstants);HAS_UNO_WINUI</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('net6.0-windows10')) ">
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
</ItemGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
<PackageReference Include="Reactive.Wasm" Version="1.*" />
</ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion src/ReactiveUI.Uno/ActivationForViewFetcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

using System;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using System.Reflection;

Expand Down
2 changes: 1 addition & 1 deletion src/ReactiveUI.Wpf/ReactiveUI.Wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<None Include="..\ReactiveUI.Uwp\Rx\**\*.cs" LinkBase="Rx" />
</ItemGroup>

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

0 comments on commit 875137d

Please sign in to comment.