Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit a44070a

Browse files
committed
Make Sentinel .NET Core tests work on Linux
1 parent 0ea465a commit a44070a

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

tests/ServiceStack.Redis.Tests.Sentinel/NetCoreTestsRunner.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if false
1+
#if NUNITLITE
22
using NUnitLite;
33
using NUnit.Common;
44
using System.Reflection;

tests/ServiceStack.Redis.Tests.Sentinel/ServiceStack.Redis.Tests.Sentinel.csproj

+18-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
<ItemGroup>
2626
<PackageReference Include="NUnit" Version="3.6.1" />
27-
<Reference Include="..\..\lib\pcl\ServiceStack.Interfaces.dll" />
2827
</ItemGroup>
2928

3029
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
@@ -40,6 +39,7 @@
4039
<Reference Include="System.Web" />
4140
<Reference Include="Microsoft.CSharp" />
4241

42+
<Reference Include="..\..\lib\pcl\ServiceStack.Interfaces.dll" />
4343
<Reference Include="..\..\lib\net45\ServiceStack.Text.dll" />
4444
<Reference Include="..\..\lib\net45\ServiceStack.Common.dll" />
4545
<Reference Include="..\..\lib\net45\ServiceStack.dll" />
@@ -49,13 +49,26 @@
4949
<DefineConstants>$(DefineConstants);NETCORE_SUPPORT;NETCORE</DefineConstants>
5050
</PropertyGroup>
5151

52+
<!-- Enable NunitLite build, becase NUnit is not supported on .NET Core SDK 1.0.2
53+
https://github.com/nunit/dotnet-test-nunit/issues/91
54+
To enable NUnitLite pass /p:NUNITLITE=1 into msbuild arguments
55+
-->
56+
<PropertyGroup Condition=" '$(NUNITLITE)' != '' ">
57+
<OutputType>Exe</OutputType>
58+
<DefineConstants>$(DefineConstants);NUNITLITE</DefineConstants>
59+
</PropertyGroup>
60+
61+
<ItemGroup Condition=" '$(NUNITLITE)' != '' ">
62+
<PackageReference Include="NUnitLite" Version="3.6.1" />
63+
</ItemGroup>
64+
5265
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">
53-
<PackageReference Include="Microsoft.NETCore.Portable.Compatibility" Version="1.0.1" />
5466
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.1.1" />
5567

56-
<Reference Include="..\..\lib\netstandard1.3\ServiceStack.Text.dll" />
57-
<Reference Include="..\..\lib\netstandard1.3\ServiceStack.Common.dll" />
58-
<Reference Include="..\..\lib\tests\netstandard1.6\ServiceStack.dll" />
68+
<PackageReference Include="ServiceStack.Interfaces.Core" Version="1.0.*" />
69+
<PackageReference Include="ServiceStack.Text.Core" Version="1.0.*" />
70+
<PackageReference Include="ServiceStack.Common.Core" Version="1.0.*" />
71+
<PackageReference Include="ServiceStack.Core" Version="1.0.*" />
5972
</ItemGroup>
6073

6174
</Project>

0 commit comments

Comments
 (0)