Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/8.0.0 #224

Merged
merged 61 commits into from
Jan 29, 2023
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
cab91ae
(maint): Bump actions/checkout from 2.3.4 to 2.4.0
dependabot[bot] Jan 17, 2022
52c60cd
Merge pull request #179 from cake-contrib/dependabot/github_actions/d…
nils-a Jan 17, 2022
b405490
(maint): Bump FakeItEasy from 7.2.0 to 7.3.0
dependabot[bot] Jan 18, 2022
aa80c1d
Merge pull request #180 from cake-contrib/dependabot/nuget/develop/Fa…
nils-a Jan 18, 2022
ca9cdd4
(maint): Bump FluentAssertions from 6.3.0 to 6.4.0
dependabot[bot] Jan 24, 2022
eee3ea5
Merge pull request #181 from cake-contrib/dependabot/nuget/develop/Fl…
nils-a Jan 24, 2022
1896d36
(maint): Bump coverlet.msbuild from 3.1.0 to 3.1.1
dependabot[bot] Jan 31, 2022
15dbaf5
Merge pull request #183 from cake-contrib/dependabot/nuget/develop/co…
nils-a Jan 31, 2022
933dd04
(maint): Bump coverlet.msbuild from 3.1.1 to 3.1.2
dependabot[bot] Feb 7, 2022
ef23f16
Merge pull request #184 from cake-contrib/dependabot/nuget/develop/co…
nils-a Feb 7, 2022
4c04bd9
(maint): Bump Microsoft.NET.Test.Sdk from 17.0.0 to 17.1.0
dependabot[bot] Feb 17, 2022
00d9b7d
Merge pull request #187 from cake-contrib/dependabot/nuget/develop/Mi…
nils-a Feb 17, 2022
6cddaac
(maint): Bump FluentAssertions from 6.4.0 to 6.5.1
dependabot[bot] Feb 17, 2022
699bab2
Merge pull request #186 from cake-contrib/dependabot/nuget/develop/Fl…
nils-a Feb 17, 2022
4f6b880
(maint): Bump actions/setup-dotnet from 1.9.0 to 2
dependabot[bot] Feb 28, 2022
7a910b1
Merge pull request #189 from cake-contrib/dependabot/github_actions/d…
nils-a Feb 28, 2022
54764f8
(maint): Bump actions/checkout from 2.4.0 to 3
dependabot[bot] Mar 2, 2022
e0ffb3e
Merge pull request #190 from cake-contrib/dependabot/github_actions/d…
nils-a Mar 9, 2022
4507981
(maint): Bump FakeItEasy from 7.3.0 to 7.3.1
dependabot[bot] Mar 9, 2022
edb4ea4
Merge pull request #191 from cake-contrib/dependabot/nuget/develop/Fa…
nils-a Mar 9, 2022
0a6d1e8
(maint): Bump gittools/actions from 0.9.11 to 0.9.13
dependabot[bot] Mar 18, 2022
61d7b16
Merge pull request #192 from cake-contrib/dependabot/github_actions/d…
nils-a Mar 18, 2022
3b2527b
(maint): Bump actions/cache from 2 to 3
dependabot[bot] Mar 22, 2022
6c1360a
Merge pull request #193 from cake-contrib/dependabot/github_actions/d…
nils-a Mar 22, 2022
8c842f3
(maint): Bump FluentAssertions from 6.5.1 to 6.6.0
dependabot[bot] Apr 4, 2022
183b2a2
Merge pull request #194 from cake-contrib/dependabot/nuget/develop/Fl…
nils-a Apr 4, 2022
e54db09
(maint): Bump actions/upload-artifact from 2 to 3
dependabot[bot] Apr 11, 2022
071d853
Merge pull request #195 from cake-contrib/dependabot/github_actions/d…
nils-a Apr 11, 2022
c7e534f
(maint): Bump github/codeql-action from 1 to 2
dependabot[bot] Apr 26, 2022
89ed0b4
Merge pull request #196 from cake-contrib/dependabot/github_actions/d…
nils-a Apr 30, 2022
fbfcfb6
(maint): Bump xunit.runner.visualstudio from 2.4.3 to 2.4.4
dependabot[bot] May 5, 2022
d98c041
Merge pull request #197 from cake-contrib/dependabot/nuget/develop/xu…
nils-a May 5, 2022
8a83442
(maint): Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.4.1
dependabot[bot] Dec 19, 2022
065b9f4
Merge pull request #217 from cake-contrib/dependabot/nuget/develop/Mi…
nils-a Jan 7, 2023
dd9d6f5
(maint): Bump coverlet.msbuild from 3.1.2 to 3.2.0
dependabot[bot] Jan 7, 2023
5ead643
Merge pull request #213 from cake-contrib/dependabot/nuget/develop/co…
nils-a Jan 7, 2023
749629d
(maint): Bump gittools/actions from 0.9.13 to 0.9.15
dependabot[bot] Jan 7, 2023
83d6085
Merge pull request #212 from cake-contrib/dependabot/github_actions/d…
nils-a Jan 7, 2023
99c49ea
(maint): Bump FluentAssertions from 6.6.0 to 6.8.0
dependabot[bot] Jan 7, 2023
3c6eb7c
Merge pull request #211 from cake-contrib/dependabot/nuget/develop/Fl…
nils-a Jan 7, 2023
f632bba
(maint): Bump actions/setup-dotnet from 2 to 3
dependabot[bot] Jan 7, 2023
2386057
Merge pull request #208 from cake-contrib/dependabot/github_actions/d…
nils-a Jan 7, 2023
6b111f0
(maint): Bump xunit from 2.4.1 to 2.4.2
dependabot[bot] Jan 7, 2023
be9f9fc
Merge pull request #202 from cake-contrib/dependabot/nuget/develop/xu…
nils-a Jan 7, 2023
a44b3ae
(maint): Bump xunit.runner.visualstudio from 2.4.4 to 2.4.5
dependabot[bot] Jan 7, 2023
693ed7d
Merge pull request #198 from cake-contrib/dependabot/nuget/develop/xu…
nils-a Jan 7, 2023
e2621ce
(#177) removed appveyor.aml
nils-a Jan 15, 2022
6265eb7
Merge pull request #178 from nils-a/feature/GH-177
nils-a Jan 7, 2023
359b42e
(#216) upgrade to cake 3.0.0
wgnf Jan 27, 2023
daabf27
remove dotnet 3.1 and 5 and add 7
wgnf Jan 27, 2023
148b7e8
extract adding output argument into method
wgnf Jan 29, 2023
7458307
Merge pull request #221 from wgnf/feature/upgrade-to-cake-3-0
nils-a Jan 29, 2023
763fea6
(maint): Bump FakeItEasy.Analyzer.CSharp from 6.1.0 to 6.1.1
dependabot[bot] Jan 29, 2023
2a46ea0
Merge pull request #220 from cake-contrib/dependabot/nuget/develop/Fa…
nils-a Jan 29, 2023
6250e03
(maint): Bump FluentAssertions from 6.8.0 to 6.9.0
dependabot[bot] Jan 29, 2023
5225016
Merge pull request #219 from cake-contrib/dependabot/nuget/develop/Fl…
nils-a Jan 29, 2023
202e3e8
(#222) Bumped Cake.Recipe to 3.0.1
nils-a Jan 29, 2023
7d03b67
Merge pull request #223 from nils-a/feature/GH-222
nils-a Jan 29, 2023
6e10c8d
Respect the AppendTargetFrameworkToOutputPath setting for compilation…
TI-kgallagher Oct 4, 2022
b10b7a3
add tests for appending framework with output paths
TI-kgallagher Oct 4, 2022
d26642d
Merge pull request #209 from TI-kgallagher/Fix_AppendTargetFramework_…
nils-a Jan 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions .appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "0.38.5",
"version": "1.3.0",
"commands": [
"dotnet-cake"
]
17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -32,22 +32,22 @@ jobs:
WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }}
WYAM_DEPLOY_BRANCH: "gh-pages"
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
steps:
- name: Checkout the repository
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install dotnet
uses: actions/setup-dotnet@v1.9.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x

- name: Cache Tools
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
@@ -58,18 +58,17 @@ jobs:
script-path: recipe.cake
target: CI
verbosity: Normal
cake-version: 0.38.5
cake-bootstrap: true
cake-version: tool-manifest

- name: Upload Issues-Report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
if-no-files-found: warn
name: issues
path: BuildArtifacts/report.html

- name: Upload Packages
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
if-no-files-found: warn
name: package
18 changes: 8 additions & 10 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -31,27 +31,26 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install dotnet
uses: actions/setup-dotnet@v1.9.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x

- name: Cache Tools
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -64,18 +63,17 @@ jobs:
with:
script-path: recipe.cake
target: DotNetCore-Build
cake-version: 0.38.5
cake-bootstrap: true
cake-version: tool-manifest
env:
COMPlus_DbgEnableMiniDump: 1
COMPlus_DbgMiniDumpType: 1
COMPlus_DbgMiniDumpName: BuildArtifacts/coredump.dmp

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

- name: Upload CoreDump
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
if-no-files-found: warn
7 changes: 3 additions & 4 deletions .github/workflows/publishDocs.yml
Original file line number Diff line number Diff line change
@@ -15,13 +15,13 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v2.3.4 #https://github.com/actions/checkout
uses: actions/checkout@v3 #https://github.com/actions/checkout
with:
fetch-depth: 0 # GitVersion is somewhat irritated when fetch-depth is "1"....
ref: ${{ github.event.ref }}

- name: Cache Tools
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: tools
key: ${{ runner.os }}-doc-tools-${{ hashFiles('recipe.cake') }}
@@ -32,5 +32,4 @@ jobs:
script-path: recipe.cake
target: Force-Publish-Documentation
verbosity: Diagnostic
cake-version: 0.38.5
cake-bootstrap: true
cake-version: tool-manifest
11 changes: 5 additions & 6 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
@@ -11,23 +11,23 @@ jobs:

steps:
- name: Checkout the requested branch
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache Tools
uses: actions/cache@v2.1.4
uses: actions/cache@v3
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
- name: Set up git version
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
uses: gittools/actions/gitversion/setup@v0.9.11
uses: gittools/actions/gitversion/setup@v0.9.15
with:
versionSpec: "5.x"
- name: Run git version
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.11
uses: gittools/actions/gitversion/execute@v0.9.15
- name: Create release branch ${{ github.event.inputs.version }}
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
run: git switch -c release/${{ steps.gitversion.outputs.majorMinorPatch }}
@@ -43,5 +43,4 @@ jobs:
script-path: recipe.cake
target: releasenotes
verbosity: Diagnostic
cake-version: 0.38.5
cake-bootstrap: true
cake-version: tool-manifest
4 changes: 0 additions & 4 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -6,10 +6,6 @@ Write-Host "Restoring .NET Core tools"
dotnet tool restore
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Write-Host "Bootstrapping Cake"
dotnet cake $SCRIPT_NAME --bootstrap
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Write-Host "Running Build"
dotnet cake $SCRIPT_NAME @args
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
3 changes: 0 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -4,8 +4,5 @@ SCRIPT_NAME="recipe.cake"
echo "Restoring .NET Core tools"
dotnet tool restore

echo "Bootstrapping Cake"
dotnet cake $SCRIPT_NAME --bootstrap

echo "Running Build"
dotnet cake $SCRIPT_NAME "$@"
7 changes: 1 addition & 6 deletions recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#load nuget:?package=Cake.Recipe&version=2.2.1
#load nuget:?package=Cake.Recipe&version=3.0.1

Environment.SetVariableNames();

@@ -23,11 +23,6 @@ ToolSettings.SetToolPreprocessorDirectives(
);

ToolSettings.SetToolSettings(context: Context,
dupFinderExcludePattern: new string[] {
BuildParameters.RootDirectoryPath + "/src/**/*.AssemblyInfo.cs",
BuildParameters.RootDirectoryPath + "/src/Cake.Incubator.Tests/*.cs",
BuildParameters.RootDirectoryPath + "/src/Cake.Incubator/CustomProjectParser.cs",
BuildParameters.RootDirectoryPath + "/src/Cake.Incubator/DotNetCoreTestExtensions.cs" },
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[FakeItEasy]* -[FluentAssertions]* -[FluentAssertions.Core]*",
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
26 changes: 15 additions & 11 deletions src/Cake.Incubator.Tests/Cake.Incubator.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<None Remove="sampleprojects\AnotherCSProj.xml" />
@@ -11,11 +11,13 @@
<None Remove="sampleprojects\CsProj_ConditionReference_ValidFile.xml" />
<None Remove="sampleprojects\CsProj_InvalidFile.xml" />
<None Remove="sampleprojects\CsProj_NoAppendTargetFramework.xml" />
<None Remove="sampleprojects\CsProj_NoAppendTargetFrameworkWithOutputPath.xml" />
<None Remove="sampleprojects\CsProj_ValidFile.xml" />
<None Remove="sampleprojects\CsProj_ValidMSTestFile.xml" />
<None Remove="sampleprojects\CsProj_ValidWebApplication.xml" />
<None Remove="sampleprojects\CsProj_ValidXUnitTestFile.xml" />
<None Remove="sampleprojects\CsProj_AppendTargetFramework.xml" />
<None Remove="sampleprojects\CsProj_AppendTargetFrameworkWithOutputPath.xml" />
<None Remove="sampleprojects\VS2017_CsProj_NetCoreDefault.xml" />
<None Remove="sampleprojects\VS2017_CsProj_NetStandard_ValidFile.xml" />
<None Remove="sampleprojects\VS2017_CsProj_ValidFile.xml" />
@@ -27,36 +29,38 @@
<EmbeddedResource Include="sampleprojects\CsProjValidNUnitTestFile.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_AbsolutePath.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_NoAppendTargetFramework.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_NoAppendTargetFrameworkWithOutputPath.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_ConditionReference_ValidFile.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_InvalidFile.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_ValidFile.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_ValidMSTestFile.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_ValidWebApplication.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_ValidXUnitTestFile.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_AppendTargetFramework.xml" />
<EmbeddedResource Include="sampleprojects\CsProj_AppendTargetFrameworkWithOutputPath.xml" />
<EmbeddedResource Include="sampleprojects\VS2017_CsProj_NetCoreDefault.xml" />
<EmbeddedResource Include="sampleprojects\VS2017_CsProj_NetStandard_ValidFile.xml" />
<EmbeddedResource Include="sampleprojects\VS2017_CsProj_ValidFile.xml" />
<EmbeddedResource Include="sampleprojects\Cake_Unity_FSharp_Tests_fsproj.xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Cake.Common" Version="2.0.0" />
<PackageReference Include="Cake.Core" Version="2.0.0" />
<PackageReference Include="Cake.Testing" Version="2.0.0" />
<PackageReference Include="coverlet.msbuild" Version="3.1.0">
<PackageReference Include="Cake.Common" Version="3.0.0" />
<PackageReference Include="Cake.Core" Version="3.0.0" />
<PackageReference Include="Cake.Testing" Version="3.0.0" />
<PackageReference Include="coverlet.msbuild" Version="3.2.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FakeItEasy" Version="7.2.0" />
<PackageReference Include="FakeItEasy.Analyzer.CSharp" Version="6.1.0" />
<PackageReference Include="FluentAssertions" Version="6.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="FakeItEasy" Version="7.3.1" />
<PackageReference Include="FakeItEasy.Analyzer.CSharp" Version="6.1.1" />
<PackageReference Include="FluentAssertions" Version="6.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cake.Incubator\Cake.Incubator.csproj" />
22 changes: 22 additions & 0 deletions src/Cake.Incubator.Tests/CustomProjectParserTests.cs
Original file line number Diff line number Diff line change
@@ -53,6 +53,8 @@ public class CustomProjectParserTests
private readonly FakeFile validCsProjWithAbsoluteFilePaths;
private readonly FakeFile validCsProjAppendTargetFrameworkFile;
private readonly FakeFile validCsProjNoAppendTargetFrameworkFile;
private readonly FakeFile validCsProjAppendTargetFrameworkOutputPathFile;
private readonly FakeFile validCsProjNoAppendTargetFrameworkOutputPathFile;
private readonly FakeFileSystem fs;

public CustomProjectParserTests()
@@ -67,6 +69,8 @@ public CustomProjectParserTests()
validCsProjWithAbsoluteFilePaths = fs.CreateFakeFile("CsProj_AbsolutePath".SafeLoad());
validCsProjAppendTargetFrameworkFile = fs.CreateFakeFile("CsProj_AppendTargetFramework".SafeLoad());
validCsProjNoAppendTargetFrameworkFile = fs.CreateFakeFile("CsProj_NoAppendTargetFramework".SafeLoad());
validCsProjAppendTargetFrameworkOutputPathFile = fs.CreateFakeFile("CsProj_AppendTargetFrameworkWithOutputPath".SafeLoad());
validCsProjNoAppendTargetFrameworkOutputPathFile = fs.CreateFakeFile("CsProj_NoAppendTargetFrameworkWithOutputPath".SafeLoad());
}

[Fact]
@@ -121,6 +125,24 @@ public void CustomProjectParser_RespectNoAppendTargetFrameworkToOutputPath_ForDe
result.OutputPath.ToString().Should().Be("bin/debug");
}

[Fact]
public void CustomProjectParser_RespectAppendTargetFrameworkOutputPathToOutputPath_ForDebugConfig()
{
var result = validCsProjAppendTargetFrameworkOutputPathFile.ParseProjectFile("debug");

result.Configuration.Should().Be("debug");
result.OutputPath.ToString().Should().Be("bin/debug/net48");
}

[Fact]
public void CustomProjectParser_RespectNoAppendTargetFrameworkOutputPathToOutputPath_ForDebugConfig()
{
var result = validCsProjNoAppendTargetFrameworkOutputPathFile.ParseProjectFile("debug");

result.Configuration.Should().Be("debug");
result.OutputPath.ToString().Should().Be("bin/debug");
}

[Fact]
public void CustomProjectParser_RespectAppendTargetFrameworkToOutputPath_ForDebugConfig()
{
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@

namespace Cake.Incubator.Tests
{
using Cake.Common.Tools.DotNetCore.MSBuild;
using Cake.Common.Tools.DotNet.MSBuild;
using Cake.Incubator.DotNetBuildExtensions;
using FluentAssertions;
using Xunit;
@@ -17,7 +17,7 @@ public void CanAddMultipleTargets()
{
var targets = new[] { "One", "Two" };

var settings = new DotNetCoreMSBuildSettings();
var settings = new DotNetMSBuildSettings();
settings.WithTargets(targets);

settings.Targets.Should().HaveCount(2).And.Contain(targets);
Loading