Skip to content

Commit

Permalink
fix build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPulman committed Sep 2, 2021
1 parent bf779a8 commit 3d74d7a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
3 changes: 0 additions & 3 deletions src/ReactiveUI.DI.Tests/NinjectReactiveUIDependencyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
15 changes: 6 additions & 9 deletions src/ReactiveUI.DI.Tests/ReactiveUI.DI.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net462;net472;netcoreapp3;net5.0;</TargetFrameworks>
Expand All @@ -14,6 +14,7 @@
<Compile Remove="AutoFacReactiveUIDependencyTests.cs" />
<Compile Remove="NinjectReactiveUIDependencyTests.cs" />
<Compile Remove="SimpleInjectorReactiveUIDependencyTests.cs" />
<ProjectReference Include="..\Splat.DryIoc\Splat.DryIoc.csproj" />
</ItemGroup>
</When>
<When Condition="$(TargetFramework.StartsWith('net472'))">
Expand All @@ -22,6 +23,7 @@
<!--<Compile Remove="AutoFacReactiveUIDependencyTests.cs" />-->
<Compile Remove="NinjectReactiveUIDependencyTests.cs" />
<Compile Remove="SimpleInjectorReactiveUIDependencyTests.cs" />
<ProjectReference Include="..\Splat.Autofac\Splat.Autofac.csproj" />
</ItemGroup>
</When>
<When Condition="$(TargetFramework.StartsWith('netcoreapp3'))">
Expand All @@ -30,6 +32,7 @@
<Compile Remove="AutoFacReactiveUIDependencyTests.cs" />
<!--<Compile Remove="NinjectReactiveUIDependencyTests.cs" />-->
<Compile Remove="SimpleInjectorReactiveUIDependencyTests.cs" />
<ProjectReference Include="..\Splat.Ninject\Splat.Ninject.csproj" />
</ItemGroup>
</When>
<When Condition="$(TargetFramework.StartsWith('net5.0'))">
Expand All @@ -38,19 +41,13 @@
<Compile Remove="AutoFacReactiveUIDependencyTests.cs" />
<Compile Remove="NinjectReactiveUIDependencyTests.cs" />
<!--<Compile Remove="SimpleInjectorReactiveUIDependencyTests.cs" />-->
<ProjectReference Include="..\Splat.SimpleInjector\Splat.SimpleInjector.csproj" />
</ItemGroup>
</When>
</Choose>

<ItemGroup>
<PackageReference Include="ReactiveUI" Version="15.1.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Splat.Autofac\Splat.Autofac.csproj" />
<ProjectReference Include="..\Splat.DryIoc\Splat.DryIoc.csproj" />
<ProjectReference Include="..\Splat.Ninject\Splat.Ninject.csproj" />
<ProjectReference Include="..\Splat.SimpleInjector\Splat.SimpleInjector.csproj" />
<PackageReference Include="ReactiveUI" Version="16.2.1" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/Splat.Raygun/RaygunFeatureUsageTrackingSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
8 changes: 4 additions & 4 deletions src/Splat.Raygun/Splat.Raygun.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

<Choose>
<When Condition=" $(TargetFramework.StartsWith('net5'))">
<ItemGroup>
<PackageReference Include="Mindscape.Raygun4Net.NetCore" Version="6.3.1" />
<PackageReference Include="Mindscape.Raygun4Net.NetCore" Version="6.4.1" />
</ItemGroup>
</When>
<When Condition=" $(TargetFramework.StartsWith('net6'))">
<ItemGroup>
<PackageReference Include="Mindscape.Raygun4Net.NetCore" Version="6.3.1" />
<PackageReference Include="Mindscape.Raygun4Net.NetCore" Version="6.4.1" />
</ItemGroup>
</When>
<When Condition=" $(TargetFramework.StartsWith('netstandard')) ">
<ItemGroup>
<PackageReference Include="Mindscape.Raygun4Net.NetCore" Version="6.3.1" />
<PackageReference Include="Mindscape.Raygun4Net.NetCore" Version="6.4.1" />
</ItemGroup>
</When>
<When Condition=" $(TargetFramework.StartsWith('net4')) ">
Expand Down

0 comments on commit 3d74d7a

Please sign in to comment.