Skip to content

Commit 37fb9ae

Browse files
feature Add net6.0 support (#2887)
Co-authored-by: Glenn Watson <GitHub@glennwatson.net>
1 parent c629a31 commit 37fb9ae

File tree

79 files changed

+303
-402
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+303
-402
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,19 @@ If this is a question please ask on [StackOverflow](https://stackoverflow.com/qu
2020

2121
**Steps To Reproduce**
2222
<!--
23-
Provide the steps to reproduce the behavior:
23+
Provide the steps to reproduce the behaviour:
24+
25+
​ Either link a Repo showing the error, this gives us most context for your use case scenario.
26+
27+
​ OR Following these steps
28+
2429
1. Go to '...'
2530
2. Click on '....'
2631
3. Scroll down to '....'
2732
4. See error
2833
-->
2934

30-
31-
32-
**Expected behavior**
35+
**Expected behaviour**
3336
<!-- A clear and concise description of what you expected to happen. -->
3437

3538

@@ -44,6 +47,7 @@ Provide the steps to reproduce the behavior:
4447
- OS: <!-- [e.g. iOS] -->
4548
- Version <!-- [e.g. 22] -->
4649
- Device: <!-- [e.g. iPhone6] -->
50+
- ReactiveUI Version: <!-- [e.g. 15.1.1] -->
4751

4852
**Additional context**
4953
<!-- Add any other context about the problem here. -->

.github/workflows/build-samples.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ jobs:
3737
dotnet-version: 6.0.x
3838
include-prerelease: true
3939

40-
- name: Install VS2019 preview
40+
- name: Install DotNet workloads
41+
shell: bash
42+
run: |
43+
dotnet workload install android
44+
dotnet workload install ios
45+
dotnet workload install tvos
46+
dotnet workload install macos
47+
dotnet workload install maui
48+
49+
- name: Install VS2022 preview
4150
shell: bash
4251
run: |
4352
dotnet tool update -g dotnet-vs

.github/workflows/ci-build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,16 @@ jobs:
3838
dotnet-version: 6.0.x
3939
include-prerelease: true
4040

41-
- name: Install VS2019 preview
41+
- name: Install DotNet workloads
42+
shell: bash
43+
run: |
44+
dotnet workload install android
45+
dotnet workload install ios
46+
dotnet workload install tvos
47+
dotnet workload install macos
48+
dotnet workload install maui
49+
50+
- name: Install VS2022 preview
4251
shell: bash
4352
run: |
4453
dotnet tool update -g dotnet-vs

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ ReactiveUI is developed under an OSI-approved open source license, making it fre
127127

128128
If you want to submit pull requests please first open a [GitHub issue](https://github.com/reactiveui/ReactiveUI/issues/new/choose) to discuss. We are first time PR contributors friendly.
129129

130+
The current source uses **Visual Studio 2019 Preview**. Please install the following workloads to enable building the source:
131+
132+
- dotnet workload install android
133+
- dotnet workload install ios
134+
- dotnet workload install tvos
135+
- dotnet workload install macos
136+
- dotnet workload install maui
137+
130138
## Core Team
131139

132140
<table>
@@ -150,6 +158,8 @@ If you want to submit pull requests please first open a [GitHub issue](https://g
150158
<a href="https://github.com/worldbeater">Artyom Gorchakov</a>
151159
<p>Moscow, Russia</p>
152160
</td>
161+
</tr>
162+
<tr>
153163
<td align="center" valign="top">
154164
<img width="100" height="100" src="https://github.com/cabauman.png?s=150">
155165
<br>
@@ -166,6 +176,7 @@ If you want to submit pull requests please first open a [GitHub issue](https://g
166176
</tbody>
167177
</table>
168178

179+
169180
## Alumni Core Team
170181

171182
The following have been core team members in the past.
@@ -191,6 +202,8 @@ The following have been core team members in the past.
191202
<a href="https://github.com/olevett">Olly Levett</a>
192203
<p>London, United Kingdom</p>
193204
</td>
205+
</tr>
206+
<tr>
194207
<td align="center" valign="top">
195208
<img width="100" height="100" src="https://github.com/anaisbetts.png?s=150">
196209
<br>
@@ -213,6 +226,7 @@ The following have been core team members in the past.
213226
</tbody>
214227
</table>
215228

229+
216230
## .NET Foundation
217231

218232
ReactiveUI is part of the [.NET Foundation](https://www.dotnetfoundation.org/). Other projects that are associated with the foundation include the Microsoft .NET Compiler Platform ("Roslyn") as well as the Microsoft ASP.NET family of projects, Microsoft .NET Core & Xamarin Forms.

integrationtests/IntegrationTests.Android/IntegrationTests.Android.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
1818
<AndroidResgenClass>Resource</AndroidResgenClass>
1919
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
20-
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
20+
<TargetFrameworkVersion>v11.0</TargetFrameworkVersion>
2121
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
2222
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
2323
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>

integrationtests/IntegrationTests.XamarinForms.Android/IntegrationTests.XamarinForms.Android.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
1717
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
1818
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
19-
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
19+
<TargetFrameworkVersion>v11.0</TargetFrameworkVersion>
2020
<NuGetPackageImportStamp>
2121
</NuGetPackageImportStamp>
2222
</PropertyGroup>

src/Directory.build.props

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,8 @@
6060

6161
<ItemGroup>
6262
<PackageReference Include="Nerdbank.GitVersioning" Version="3.4.231" PrivateAssets="all" />
63-
</ItemGroup>
6463

65-
<ItemGroup>
6664
<PackageReference Include="stylecop.analyzers" Version="1.2.0-beta.354" PrivateAssets="all" />
67-
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.3" PrivateAssets="all" />
6865
<PackageReference Include="Roslynator.Analyzers" Version="3.2.2" PrivateAssets="All" />
6966
</ItemGroup>
7067
<ItemGroup>

src/Directory.build.targets

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,49 @@
1010
<PropertyGroup Condition="$(TargetFramework.StartsWith('netstandard'))">
1111
<DefineConstants>$(DefineConstants);NETSTANDARD;PORTABLE</DefineConstants>
1212
</PropertyGroup>
13+
<PropertyGroup Condition="$(TargetFramework.StartsWith('netcoreapp'))">
14+
<DefineConstants>$(DefineConstants);NETCOREAPP</DefineConstants>
15+
</PropertyGroup>
16+
<PropertyGroup Condition="$(TargetFramework.StartsWith('netcoreapp2'))">
17+
<DefineConstants>$(DefineConstants);NETCOREAPP2</DefineConstants>
18+
</PropertyGroup>
19+
<PropertyGroup Condition="$(TargetFramework.StartsWith('netcoreapp3'))">
20+
<DefineConstants>$(DefineConstants);NETCOREAPP3</DefineConstants>
21+
</PropertyGroup>
1322
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
1423
<DefineConstants>$(DefineConstants);NET_461;XAML</DefineConstants>
1524
</PropertyGroup>
1625
<PropertyGroup Condition="$(TargetFramework.StartsWith('uap'))">
17-
<DefineConstants>$(DefineConstants);NETFX_CORE;XAML;WINDOWS;WINDOWS_UWP</DefineConstants>
26+
<TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion>
27+
<DefineConstants>$(DefineConstants);NETFX_CORE;XAML;WINDOWS_UWP</DefineConstants>
1828
</PropertyGroup>
1929
<PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.iOS'))">
2030
<DefineConstants>$(DefineConstants);MONO;UIKIT;COCOA;IOS</DefineConstants>
2131
</PropertyGroup>
22-
<PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.Mac'))">
32+
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-ios'))">
33+
<DefineConstants>$(DefineConstants);MONO;UIKIT;COCOA;IOS</DefineConstants>
34+
</PropertyGroup>
35+
<PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.Mac'))">
2336
<DefineConstants>$(DefineConstants);MONO;COCOA;MAC</DefineConstants>
2437
</PropertyGroup>
25-
<PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.TVOS'))">
38+
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-macos'))">
39+
<DefineConstants>$(DefineConstants);MONO;COCOA;MAC</DefineConstants>
40+
</PropertyGroup>
41+
<PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.TVOS'))">
42+
<DefineConstants>$(DefineConstants);MONO;UIKIT;COCOA;TVOS</DefineConstants>
43+
</PropertyGroup>
44+
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-tvos'))">
2645
<DefineConstants>$(DefineConstants);MONO;UIKIT;COCOA;TVOS</DefineConstants>
2746
</PropertyGroup>
2847
<PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.WatchOS'))">
29-
<DefineConstants>$(DefineConstants);MONO;COCOA;WATCHOS</DefineConstants>
48+
<DefineConstants>$(DefineConstants);MONO;UIKIT;COCOA;WATCHOS</DefineConstants>
3049
</PropertyGroup>
3150
<PropertyGroup Condition="$(TargetFramework.StartsWith('MonoAndroid'))">
3251
<DefineConstants>$(DefineConstants);MONO;ANDROID</DefineConstants>
3352
<DesignTimeBuild>false</DesignTimeBuild>
3453
</PropertyGroup>
35-
<PropertyGroup Condition="$(TargetFramework.StartsWith('netcoreapp'))">
36-
<DefineConstants>$(DefineConstants);NETCOREAPP</DefineConstants>
54+
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-android'))">
55+
<DefineConstants>$(DefineConstants);MONO;ANDROID</DefineConstants>
3756
</PropertyGroup>
3857
<PropertyGroup Condition="$(TargetFramework.StartsWith('tizen'))">
3958
<DefineConstants>$(DefineConstants);TIZEN</DefineConstants>

src/ReactiveUI.AndroidSupport/ReactiveAppCompatActivity.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public TViewModel? ViewModel
5555
/// This is an Activity that is both an Activity and has ReactiveObject powers
5656
/// (i.e. you can call RaiseAndSetIfChanged).
5757
/// </summary>
58-
[SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleType", Justification = "Classes with the same class names within.")]
5958
public class ReactiveAppCompatActivity : AppCompatActivity, IReactiveObject, IReactiveNotifyPropertyChanged<ReactiveAppCompatActivity>, IHandleObservableErrors
6059
{
6160
private readonly Subject<Unit> _activated = new();

src/ReactiveUI.AndroidSupport/ReactiveDialogFragment.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public TViewModel? ViewModel
4949
/// This is a Fragment that is both an Activity and has ReactiveObject powers
5050
/// (i.e. you can call RaiseAndSetIfChanged).
5151
/// </summary>
52-
[SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleType", Justification = "Classes with the same class names within.")]
5352
public class ReactiveDialogFragment : Android.Support.V4.App.DialogFragment, IReactiveNotifyPropertyChanged<ReactiveDialogFragment>, IReactiveObject, IHandleObservableErrors
5453
{
5554
private readonly Subject<Unit> _activated = new();

0 commit comments

Comments
 (0)