-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add netcoreapp build #1418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add netcoreapp build #1418
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MS-PL license. | ||
| // See the LICENSE file in the project root for more information. | ||
|
|
||
| using System; | ||
| using System.Reactive.Concurrency; | ||
|
|
||
| namespace ReactiveUI | ||
| { | ||
| public class PlatformRegistrations : IWantsToRegisterStuff | ||
| { | ||
| public void Register(Action<Func<object>, Type> registerFunction) | ||
| { | ||
| RxApp.TaskpoolScheduler = TaskPoolScheduler.Default; | ||
| RxApp.MainThreadScheduler = DefaultScheduler.Instance; | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFrameworks>netstandard1.1;net45;uap10.0;Xamarin.iOS10;Xamarin.Mac20;MonoAndroid70</TargetFrameworks> | ||
| <TargetFrameworks>netstandard1.1;net45;uap10.0;Xamarin.iOS10;Xamarin.Mac20;MonoAndroid70;netcoreapp1.0</TargetFrameworks> | ||
| <AssemblyName>ReactiveUI</AssemblyName> | ||
| <RootNamespace>ReactiveUI</RootNamespace> | ||
| <Description>A MVVM framework that integrates with the Reactive Extensions for .NET to create elegant, testable User Interfaces that run on any mobile or desktop platform. Supports Xamarin.iOS, Xamarin.Android, Xamarin.Mac, Xamarin Forms, WPF, Windows Forms, Windows Phone 8.1, Windows Store and Universal Windows Platform (UWP).</Description> | ||
|
|
@@ -51,7 +51,11 @@ | |
| <ItemGroup Condition=" '$(TargetFramework)' == 'MonoAndroid70' "> | ||
| <Compile Include="Platforms\android\**\*.cs" /> | ||
| <Compile Include="Platforms\xamarin-common\**\*.cs" /> | ||
| </ItemGroup> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.0' "> | ||
| <Compile Include="Platforms\netcoreapp1.0\**\*.cs" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Related to this, I'd add an additional
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll add the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That seems fine then, might be we want to make NETFX_CORE two separate defines in future, but don't think it should be in scope for this change. |
||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <None Update="VariadicTemplates.tt" Generator="TextTemplatingFileGenerator" LastGenOutput="VariadicTemplates.cs" /> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little wary of this for a couple of reasons
I'd be interested to know if there are problems if this line is omitted, or if it's fine without. I think I'd keep the PlatformRegistrations class however as it adds some value on it's own.
I also think it might be worth wiring up an
IPlatformOperationseven if it just returns null, as I think there are cases it would cause a warning to be logged otherwise (@ghuntley may disagree though...)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DefaultScheduler.InstanceThe only place that logs a warning about a missing
IPlatformOperationslooks to be inRoutedViewHost, which is only available in builds using thePlatforms/windows-commonfiles.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think don't worry about removing it everywhere for now, I think separate issue (smaller scope = nicer to review :))
Don't worry about the PlatformOperations then, does look like we shouldn't be hitting it at all :)