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

Commit 0ea465a

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

24 files changed

+15894
-15882
lines changed

lib/netstandard1.1/ServiceStack.Client.deps.json

100644100755
+683-683
Large diffs are not rendered by default.

lib/netstandard1.1/ServiceStack.Client.dll

100644100755
1.5 KB
Binary file not shown.

lib/netstandard1.1/ServiceStack.Client.pdb

100644100755
532 Bytes
Binary file not shown.

lib/netstandard1.1/ServiceStack.Interfaces.dll

100644100755
512 Bytes
Binary file not shown.

lib/netstandard1.1/ServiceStack.Text.deps.json

100644100755
+634-643
Large diffs are not rendered by default.

lib/netstandard1.1/ServiceStack.Text.dll

100644100755
512 Bytes
Binary file not shown.

lib/netstandard1.1/ServiceStack.Text.pdb

100644100755
536 Bytes
Binary file not shown.

lib/netstandard1.1/ServiceStack.Text.xml

100644100755
+1,354-1,345
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/netstandard1.3/ServiceStack.Common.deps.json

100644100755
+1,573-1,573
Large diffs are not rendered by default.

lib/netstandard1.3/ServiceStack.Common.dll

100644100755
0 Bytes
Binary file not shown.

lib/netstandard1.3/ServiceStack.Common.pdb

100644100755
308 Bytes
Binary file not shown.

lib/netstandard1.3/ServiceStack.Text.deps.json

100644100755
+1,285-1,294
Large diffs are not rendered by default.

lib/netstandard1.3/ServiceStack.Text.dll

100644100755
512 Bytes
Binary file not shown.

lib/netstandard1.3/ServiceStack.Text.pdb

100644100755
536 Bytes
Binary file not shown.

lib/netstandard1.3/ServiceStack.Text.xml

100644100755
+1,354-1,345
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/netstandard1.6/ServiceStack.Client.deps.json

100644100755
+1,993-1,993
Large diffs are not rendered by default.

lib/netstandard1.6/ServiceStack.Client.dll

100644100755
1.5 KB
Binary file not shown.
69.8 KB
Binary file not shown.

lib/netstandard1.6/ServiceStack.dll

100644100755
-3 KB
Binary file not shown.

lib/netstandard1.6/ServiceStack.pdb

450 KB
Binary file not shown.

lib/netstandard1.6/ServiceStack.xml

100644100755
+7,000-7,000
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/.nuget/NuGet.exe

100644100755
File mode changed.

tests/ServiceStack.Redis.Tests/NetCoreTestsRunner.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//NUnitLite isn't recognized in VS2017 - shouldn't need NUnitLite with NUnit 3.5+ https://github.com/nunit/dotnet-test-nunit
2-
#if false
2+
#if NUNITLITE
33
using NUnitLite;
44
using NUnit.Common;
55
using System.Reflection;

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

+17-5
Original file line numberDiff line numberDiff line change
@@ -49,14 +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.1\ServiceStack.Interfaces.dll" />
57-
<Reference Include="..\..\lib\netstandard1.3\ServiceStack.Text.dll" />
58-
<Reference Include="..\..\lib\netstandard1.3\ServiceStack.Common.dll" />
59-
<Reference Include="..\..\lib\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.*" />
6072
</ItemGroup>
6173

6274
</Project>

0 commit comments

Comments
 (0)