This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree 2 files changed +14
-1
lines changed
tests/ServiceStack.Text.Tests
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
//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
3
3
using NUnitLite ;
4
4
using NUnit . Common ;
5
5
using System . Reflection ;
Original file line number Diff line number Diff line change 54
54
<DefineConstants >$(DefineConstants);NETCORE_SUPPORT;NETCORE</DefineConstants >
55
55
</PropertyGroup >
56
56
57
+ <!-- Enable NunitLite build, becase NUnit is not supported on .NET Core SDK 1.0.2
58
+ https://github.com/nunit/dotnet-test-nunit/issues/91
59
+ To enable NUnitLite pass /p:NUNITLITE=1 into msbuild arguments
60
+ -->
61
+ <PropertyGroup Condition =" '$(NUNITLITE)' != '' " >
62
+ <OutputType >Exe</OutputType >
63
+ <DefineConstants >$(DefineConstants);NUNITLITE</DefineConstants >
64
+ </PropertyGroup >
65
+
66
+ <ItemGroup Condition =" '$(NUNITLITE)' != '' " >
67
+ <PackageReference Include =" NUnitLite" Version =" 3.6.1" />
68
+ </ItemGroup >
69
+
57
70
<ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp1.1' " >
58
71
<PackageReference Include =" Microsoft.NETCore.Portable.Compatibility" Version =" 1.0.1" />
59
72
<PackageReference Include =" Microsoft.Extensions.Primitives" Version =" 1.*" />
You can’t perform that action at this time.
0 commit comments