Skip to content

Commit c0d3e22

Browse files
arnaudmaichacvany0114
authored andcommitted
Add .NET Standard 2.1 target (#51)
* Add .NET Standard 2.1 target * Update AppVeyor image * Update Cake * Remove out-of-date comment
1 parent 3ea4868 commit c0d3e22

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
os: Visual Studio 2017
1+
os: Visual Studio 2019
22

33
# Build script
44
build_script:

build.cake

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ var configuration = Argument<string>("configuration", "Release");
99
// EXTERNAL NUGET TOOLS
1010
//////////////////////////////////////////////////////////////////////
1111

12-
#Tool "xunit.runner.console"
13-
#Tool "GitVersion.CommandLine"
14-
#Tool "Brutal.Dev.StrongNameSigner"
12+
#tool nuget:?package=xunit.runner.console&version=2.4.1
13+
#tool nuget:?package=GitVersion.CommandLine&version=5.0.1
14+
#tool nuget:?package=Brutal.Dev.StrongNameSigner&version=2.4.0
1515

1616
//////////////////////////////////////////////////////////////////////
1717
// EXTERNAL NUGET LIBRARIES
1818
//////////////////////////////////////////////////////////////////////
1919

20-
#addin "Cake.FileHelpers"
20+
#addin nuget:?package=Cake.FileHelpers&version=3.2.1
2121

2222
///////////////////////////////////////////////////////////////////////////////
2323
// GLOBAL VARIABLES
@@ -192,7 +192,7 @@ Task("__BuildSolutions")
192192
settings
193193
.SetConfiguration(configuration)
194194
.WithProperty("TreatWarningsAsErrors", "true")
195-
.UseToolVersion(MSBuildToolVersion.VS2017)
195+
.UseToolVersion(MSBuildToolVersion.VS2019)
196196
.SetVerbosity(Verbosity.Minimal)
197197
.SetNodeReuse(false));
198198
}

build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if(-Not $SkipToolPackageRestore.IsPresent)
111111
# Install just Cake if missing config
112112
else
113113
{
114-
$NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install Cake -Version 0.25.0 -ExcludeVersion" # Pin Cake version to 0.25.0; see https://github.com/App-vNext/Polly/issues/416
114+
$NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install Cake -Version 0.35.0 -ExcludeVersion"
115115
Write-Verbose ($NuGetOutput | Out-String)
116116
}
117117
Pop-Location

src/Polly.Contrib.Simmy.Specs/Polly.Contrib.Simmy.Specs.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp1.1;netcoreapp2.0;net462;net472</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp1.1;netcoreapp2.1;netcoreapp3.0;net462;net472</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>

src/Polly.Contrib.Simmy.nuspec

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<group targetFramework="netstandard2.0">
3030
<dependency id="Polly" version="7.1.0" />
3131
</group>
32+
<group targetFramework="netstandard2.1">
33+
<dependency id="Polly" version="7.1.0" />
34+
</group>
3235
</dependencies>
3336
</metadata>
3437
<files>

src/Polly.Contrib.Simmy/Polly.Contrib.Simmy.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard1.1;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard1.1;netstandard2.0;netstandard2.1</TargetFrameworks>
55
<AssemblyName>Polly.Contrib.Simmy</AssemblyName>
66
<RootNamespace>Polly.Contrib.Simmy</RootNamespace>
77
<Version>0.1.0</Version>

0 commit comments

Comments
 (0)