Skip to content

Commit 89b72b1

Browse files
authored
Merge pull request #107 from nils-a/feature/GH-106
(#106) bumped Cake to 2.0.0
2 parents e6cc32c + 60f2490 commit 89b72b1

File tree

7 files changed

+24
-46
lines changed

7 files changed

+24
-46
lines changed

.appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install:
1313
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 2.1.818 -InstallDir $env:DOTNET_INSTALL_DIR'
1414
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 3.1.414 -InstallDir $env:DOTNET_INSTALL_DIR'
1515
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.402 -InstallDir $env:DOTNET_INSTALL_DIR'
16-
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.100-rc.2.21505.57 -InstallDir $env:DOTNET_INSTALL_DIR'
16+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.100 -InstallDir $env:DOTNET_INSTALL_DIR'
1717
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
1818
- ps: dotnet --info
1919

.github/workflows/build.yml

+6-14
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,12 @@ jobs:
3030

3131
- uses: actions/setup-dotnet@v1.9.0
3232
with:
33-
# codecov and unittests need 2.1
34-
dotnet-version: '2.1.818'
35-
- uses: actions/setup-dotnet@v1.9.0
36-
with:
37-
dotnet-version: '3.1.414'
38-
- uses: actions/setup-dotnet@v1.9.0
39-
with:
40-
# gitversion needs 5.0
41-
dotnet-version: '5.0.402'
42-
- uses: actions/setup-dotnet@v1.9.0
43-
with:
44-
# need at least .NET 6 rc2 to build
45-
dotnet-version: '6.0.100-rc.2.21505.57'
46-
include-prerelease: true
33+
# codecov and unittests need 2.1, gitversion needs 5.0 and need .NET 6 to build
34+
dotnet-version: |
35+
2.1.818
36+
3.1.414
37+
5.0.402
38+
6.0.100
4739
4840
- name: Cache Tools
4941
uses: actions/cache@v2.1.7

.github/workflows/codeql-analysis.yml

+6-14
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,12 @@ jobs:
2626

2727
- uses: actions/setup-dotnet@v1.9.0
2828
with:
29-
# codecov and unittests need 2.1
30-
dotnet-version: '2.1.818'
31-
- uses: actions/setup-dotnet@v1.9.0
32-
with:
33-
dotnet-version: '3.1.414'
34-
- uses: actions/setup-dotnet@v1.9.0
35-
with:
36-
# gitversion needs 5.0
37-
dotnet-version: '5.0.402'
38-
- uses: actions/setup-dotnet@v1.9.0
39-
with:
40-
# need at least .NET 6 rc2 to build
41-
dotnet-version: '6.0.100-rc.2.21505.57'
42-
include-prerelease: true
29+
# codecov and unittests need 2.1, gitversion needs 5.0 and need .NET 6 to build
30+
dotnet-version: |
31+
2.1.818
32+
3.1.414
33+
5.0.402
34+
6.0.100
4335
4436
- name: Cache Tools
4537
uses: actions/cache@v2.1.7

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
33
"allowPrerelease": true,
4-
"version": "6.0.100-rc.2",
4+
"version": "6.0.100",
55
"rollForward": "latestFeature"
66
}
77
}

source/Cake.ExtendedNuGet.Tests/Cake.ExtendedNuGet.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.1</TargetFramework>
4+
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Cake.Common" Version="1.0.0" />
9-
<PackageReference Include="Cake.Core" Version="1.0.0" />
10-
<PackageReference Include="Cake.Testing" Version="1.0.0" />
8+
<PackageReference Include="Cake.Common" Version="2.0.0" />
9+
<PackageReference Include="Cake.Core" Version="2.0.0" />
10+
<PackageReference Include="Cake.Testing" Version="2.0.0" />
1111
<PackageReference Include="coverlet.msbuild" Version="3.1.0">
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
<PrivateAssets>all</PrivateAssets>

source/Cake.ExtendedNuGet.Tests/Fakes/FakeCakeArguments.cs

+2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ public ICollection<string> GetArguments(string name)
3232
{
3333
return _arguments.TryGetValue(name, out var val) ? val : new List<string>();
3434
}
35+
36+
public IDictionary<string, ICollection<string>> GetArguments() => _arguments;
3537
}
3638
}

source/Cake.ExtendedNuGet/Cake.ExtendedNuGet.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<IncludeSymbols>true</IncludeSymbols>
77
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<!--
12-
The target of this addin is NuGet.Packaging/NuGet.Core.
13-
Since "they" double-target netstandard2.0 and net471
14-
the guideline to target cake addins to net461
15-
(see https://cake-contrib.github.io/CakeContrib.Guidelines/rules/ccg0007)
16-
can be ignored.
17-
-->
18-
<CakeContribGuidelinesOmitTargetFramework Include="net461" />
1911
<None Include="../../README.md" Link="README.md" Pack="true" PackagePath="" />
2012
</ItemGroup>
2113

@@ -39,9 +31,9 @@
3931
<PrivateAssets>all</PrivateAssets>
4032
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4133
</PackageReference>
42-
<PackageReference Include="Cake.Common" Version="1.0.0" PrivateAssets="All" />
43-
<PackageReference Include="Cake.Core" Version="1.0.0" PrivateAssets="All" />
44-
<PackageReference Include="CakeContrib.Guidelines" Version="1.2.0">
34+
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
35+
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
36+
<PackageReference Include="CakeContrib.Guidelines" Version="1.3.0">
4537
<PrivateAssets>all</PrivateAssets>
4638
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4739
</PackageReference>

0 commit comments

Comments
 (0)