From 60d8d837bfc1834e5a581ace55ebbe68636936c2 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Fri, 3 Sep 2021 00:33:36 +0100 Subject: [PATCH] fix build and test (#762) --- .../NinjectReactiveUIDependencyTests.cs | 3 --- .../ReactiveUI.DI.Tests.csproj | 15 ++++++--------- .../RaygunFeatureUsageTrackingSession.cs | 6 +++--- src/Splat.Raygun/Splat.Raygun.csproj | 8 ++++---- 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/src/ReactiveUI.DI.Tests/NinjectReactiveUIDependencyTests.cs b/src/ReactiveUI.DI.Tests/NinjectReactiveUIDependencyTests.cs index 363157c41..b1abee4aa 100644 --- a/src/ReactiveUI.DI.Tests/NinjectReactiveUIDependencyTests.cs +++ b/src/ReactiveUI.DI.Tests/NinjectReactiveUIDependencyTests.cs @@ -3,13 +3,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for full license information. -using System.Collections.Generic; using System.Linq; -using Autofac; using FluentAssertions; using Ninject; using Splat; -using Splat.Autofac; using Splat.Ninject; using Xunit; diff --git a/src/ReactiveUI.DI.Tests/ReactiveUI.DI.Tests.csproj b/src/ReactiveUI.DI.Tests/ReactiveUI.DI.Tests.csproj index f7405e060..5f956d81d 100644 --- a/src/ReactiveUI.DI.Tests/ReactiveUI.DI.Tests.csproj +++ b/src/ReactiveUI.DI.Tests/ReactiveUI.DI.Tests.csproj @@ -1,4 +1,4 @@ - + net462;net472;netcoreapp3;net5.0; @@ -14,6 +14,7 @@ + @@ -22,6 +23,7 @@ + @@ -30,6 +32,7 @@ + @@ -38,19 +41,13 @@ + - - - - - - - - + diff --git a/src/Splat.Raygun/RaygunFeatureUsageTrackingSession.cs b/src/Splat.Raygun/RaygunFeatureUsageTrackingSession.cs index 8153a8806..8b523c6f8 100644 --- a/src/Splat.Raygun/RaygunFeatureUsageTrackingSession.cs +++ b/src/Splat.Raygun/RaygunFeatureUsageTrackingSession.cs @@ -66,10 +66,10 @@ internal RaygunFeatureUsageTrackingSession( // keep an eye on // https://raygun.com/forums/thread/92182 -#if NETSTANDARD2_0 || NET5_0 || NET6_0 - var messageBuilder = RaygunMessageBuilder.New(raygunSettings) -#else +#if NET461 var messageBuilder = RaygunMessageBuilder.New +#else + var messageBuilder = RaygunMessageBuilder.New(raygunSettings) #endif .SetClientDetails() .SetEnvironmentDetails() diff --git a/src/Splat.Raygun/Splat.Raygun.csproj b/src/Splat.Raygun/Splat.Raygun.csproj index dff04d59e..32d892658 100644 --- a/src/Splat.Raygun/Splat.Raygun.csproj +++ b/src/Splat.Raygun/Splat.Raygun.csproj @@ -11,21 +11,21 @@ latest enable - + - + - + - +