Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ReactiveUI.Events.WPF/ReactiveUI.Events.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<RootNamespace>ReactiveUI.Events</RootNamespace>
<Description>Provides Observable-based events API for WPF UI controls/eventhandlers. The contents of this package is automatically generated, please target pull-requests to the code generator.</Description>
<PackageId>ReactiveUI.Events.WPF</PackageId>
<ExtrasEnableWpfProjectSetup>true</ExtrasEnableWpfProjectSetup>
<UseWpf>true</UseWpf>
<NoWarn>$(NoWarn);CS1570;CA1812</NoWarn>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<RootNamespace>ReactiveUI.Events</RootNamespace>
<Description>Provides Observable-based events API for Winforms UI controls/eventhandlers. The contents of this package is automatically generated, please target pull-requests to the code generator.</Description>
<PackageId>ReactiveUI.Events.Winforms</PackageId>
<ExtrasEnableWinFormsProjectSetup>true</ExtrasEnableWinFormsProjectSetup >
<UseWindowsForms>true</UseWindowsForms>
<NoWarn>$(NoWarn);CS1570;CA1812</NoWarn>
</PropertyGroup>

Expand Down
6 changes: 0 additions & 6 deletions src/ReactiveUI.Events/ReactiveUI.Events.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@

<ItemGroup Condition=" $(TargetFramework.StartsWith('uap')) ">
<Compile Include="Events_UWP.cs" Condition="Exists('Events_UWP.cs')" />
<SDKReference Include="WindowsDesktop, Version=10.0.17763.0">
<Name>Windows Desktop Extensions for the UWP</Name>
</SDKReference>
<SDKReference Include="WindowsMobile, Version=10.0.17763.0">
<Name>Windows Mobile Extensions for the UWP</Name>
</SDKReference>
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('Xamarin.iOS')) ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,4 @@ namespace ReactiveUI.Wpf
public Registrations() { }
public void Register(System.Action<System.Func<object>, System.Type> registerFunction) { }
}
}
namespace XamlGeneratedNamespace
{
public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper
{
public GeneratedInternalTypeHelper() { }
protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) { }
protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) { }
protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) { }
protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) { }
protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) { }
}
}
30 changes: 29 additions & 1 deletion src/ReactiveUI.Tests/Utilities/ApiApprovalBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
Expand Down Expand Up @@ -46,7 +48,33 @@ protected static void CheckApproval(Assembly assembly, [CallerMemberName]string
if (!string.Equals(receivedPublicApi, approvedPublicApi, StringComparison.InvariantCulture))
{
File.WriteAllText(receivedFileName, receivedPublicApi);
ShouldlyConfiguration.DiffTools.GetDiffTool().Open(receivedFileName, approvedFileName, true);
try
{
ShouldlyConfiguration.DiffTools.GetDiffTool().Open(receivedFileName, approvedFileName, true);
}
catch (ShouldAssertException)
{
var process = new Process
{
StartInfo = new ProcessStartInfo
{
Arguments = $"\"{approvedFileName}\" \"{receivedFileName}\"",
UseShellExecute = false,
RedirectStandardOutput = true,
CreateNoWindow = true
}
};
#if NET_461
process.StartInfo.FileName = "FC";
#else
process.StartInfo.FileName = "diff";
#endif
process.Start();
string output = process.StandardOutput.ReadToEnd();
process.WaitForExit();

throw new Exception("Invalid API configuration: " + Environment.NewLine + output);
}
}

Assert.Equal(approvedPublicApi, receivedPublicApi);
Expand Down
2 changes: 1 addition & 1 deletion src/ReactiveUI.Winforms/ReactiveUI.Winforms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RootNamespace>ReactiveUI.Winforms</RootNamespace>
<Description>Windows Forms specific extensions to ReactiveUI</Description>
<PackageId>ReactiveUI.WinForms</PackageId>
<ExtrasEnableWinFormsProjectSetup>true</ExtrasEnableWinFormsProjectSetup>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>

<ItemGroup>
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 @@ -3,7 +3,7 @@
<TargetFrameworks>net461</TargetFrameworks>
<Description>WPF specific extensions to ReactiveUI</Description>
<PackageId>ReactiveUI.WPF</PackageId>
<ExtrasEnableWpfProjectSetup>true</ExtrasEnableWpfProjectSetup>
<UseWpf>true</UseWpf>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"msbuild-sdks": {
"MSBuild.Sdk.Extras": "1.6.68"
"MSBuild.Sdk.Extras": "2.0.24"
}
}