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

Commit d566ee8

Browse files
committed
Upgrade test projs to netcoreapp2.1
1 parent e177a48 commit d566ee8

File tree

3 files changed

+14
-34
lines changed

3 files changed

+14
-34
lines changed
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
54
<AssemblyName>ServiceStack.Redis</AssemblyName>
@@ -14,46 +13,37 @@
1413
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
1514
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
1615
</PropertyGroup>
17-
1816
<PropertyGroup Condition=" '$(Configuration)' != 'Debug' ">
1917
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2018
<Optimize>true</Optimize>
2119
</PropertyGroup>
22-
2320
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
2421
<DebugType>portable</DebugType>
2522
</PropertyGroup>
26-
2723
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
2824
<DefineConstants>$(DefineConstants);NET45</DefineConstants>
2925
<SignAssembly>True</SignAssembly>
3026
<DelaySign>False</DelaySign>
3127
<AssemblyOriginatorKeyFile>../servicestack.snk</AssemblyOriginatorKeyFile>
3228
</PropertyGroup>
33-
3429
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
3530
<Reference Include="System.Net" />
36-
3731
<Reference Include="..\..\lib\net45\ServiceStack.Interfaces.dll" />
3832
<Reference Include="..\..\lib\net45\ServiceStack.Text.dll" />
3933
<Reference Include="..\..\lib\net45\ServiceStack.Common.dll" />
4034
</ItemGroup>
41-
4235
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
4336
<DefineConstants>$(DefineConstants);NETSTANDARD1_3</DefineConstants>
4437
</PropertyGroup>
45-
4638
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
4739
<PackageReference Include="System.Net.Security" Version="4.3.1" />
4840
<PackageReference Include="System.Collections.Specialized" Version="4.3.0" />
4941
<PackageReference Include="System.Collections.NonGeneric" Version="4.3.0" />
5042
<PackageReference Include="System.Net.NameResolution" Version="4.3.0" />
5143
<PackageReference Include="System.Data.Common" Version="4.3.0" />
5244
<PackageReference Include="System.Threading.Thread" Version="4.3.0" />
53-
5445
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.Interfaces.dll" />
5546
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.Text.dll" />
5647
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.Common.dll" />
5748
</ItemGroup>
58-
59-
</Project>
49+
</Project>

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.0;net45</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp2.1;net45</TargetFrameworks>
55
<DebugType>portable</DebugType>
66
<AssemblyName>ServiceStack.Redis.Tests.Sentinel</AssemblyName>
77
<OutputType>Library</OutputType>
@@ -21,7 +21,9 @@
2121
</ItemGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="NUnit" Version="3.8.1" />
24+
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
25+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
26+
<PackageReference Include="NUnit" Version="3.10.1" />
2527
</ItemGroup>
2628

2729
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
@@ -43,7 +45,7 @@
4345
<Reference Include="..\..\lib\net45\ServiceStack.dll" />
4446
</ItemGroup>
4547

46-
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
48+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
4749
<DefineConstants>$(DefineConstants);NETCORE_SUPPORT;NETCORE</DefineConstants>
4850
</PropertyGroup>
4951

@@ -60,7 +62,7 @@
6062
<PackageReference Include="NUnitLite" Version="3.6.1" />
6163
</ItemGroup>
6264

63-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
65+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
6466
<PackageReference Include="Microsoft.Extensions.Primitives" Version="2.0.0" />
6567

6668
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.Interfaces.dll" />
Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
4-
<TargetFrameworks>net46;netcoreapp2.0</TargetFrameworks>
5-
<!--<TargetFrameworks>netcoreapp1.1</TargetFrameworks>-->
3+
<TargetFrameworks>net46;netcoreapp2.1</TargetFrameworks>
64
<DebugType>portable</DebugType>
75
<AssemblyName>ServiceStack.Redis.Tests</AssemblyName>
86
<OutputType>Library</OutputType>
@@ -16,19 +14,16 @@
1614
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
1715
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
1816
</PropertyGroup>
19-
2017
<ItemGroup>
2118
<ProjectReference Include="..\..\src\ServiceStack.Redis\ServiceStack.Redis.csproj" />
22-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
23-
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
24-
<PackageReference Include="NUnit" Version="3.9.0" />
19+
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
20+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
21+
<PackageReference Include="NUnit" Version="3.10.1" />
2522
<PackageReference Include="System.Memory" Version="4.5.1" />
2623
</ItemGroup>
27-
2824
<PropertyGroup Condition=" '$(TargetFramework)' == 'net46' ">
2925
<DefineConstants>$(DefineConstants);NET45</DefineConstants>
3026
</PropertyGroup>
31-
3227
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
3328
<Reference Include="System.Configuration" />
3429
<Reference Include="System.Threading" />
@@ -38,17 +33,14 @@
3833
<Reference Include="System.Web" />
3934
<Reference Include="System.Web.Extensions" />
4035
<Reference Include="Microsoft.CSharp" />
41-
4236
<Reference Include="..\..\lib\net45\ServiceStack.Interfaces.dll" />
4337
<Reference Include="..\..\lib\net45\ServiceStack.Text.dll" />
4438
<Reference Include="..\..\lib\net45\ServiceStack.Common.dll" />
4539
<Reference Include="..\..\lib\net45\ServiceStack.dll" />
4640
</ItemGroup>
47-
48-
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
41+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
4942
<DefineConstants>$(DefineConstants);NETCORE_SUPPORT;NETCORE</DefineConstants>
5043
</PropertyGroup>
51-
5244
<!-- Enable NunitLite build, becase NUnit is not supported on .NET Core SDK 1.0.2
5345
https://github.com/nunit/dotnet-test-nunit/issues/91
5446
To enable NUnitLite pass /p:NUNITLITE=1 into msbuild arguments
@@ -57,18 +49,14 @@
5749
<OutputType>Exe</OutputType>
5850
<DefineConstants>$(DefineConstants);NUNITLITE</DefineConstants>
5951
</PropertyGroup>
60-
6152
<ItemGroup Condition=" '$(NUNITLITE)' != '' ">
6253
<PackageReference Include="NUnitLite" Version="3.9.0" />
6354
</ItemGroup>
64-
65-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
55+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
6656
<PackageReference Include="Microsoft.Extensions.Primitives" Version="2.1.1" />
67-
6857
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.Interfaces.dll" />
6958
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.Text.dll" />
7059
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.Common.dll" />
7160
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.dll" />
7261
</ItemGroup>
73-
74-
</Project>
62+
</Project>

0 commit comments

Comments
 (0)