Skip to content

Commit

Permalink
chore: DotNetCore* commands are deprecated in favour of DotNet* commands
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee committed Jun 13, 2022
1 parent b690a0f commit 7651499
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ Task("Restore")
.IsDependentOn("Clean")
.Does(() =>
{
DotNetCoreRestore();
DotNetRestore();
});

Task("Build")
.Description("Builds the solution.")
.IsDependentOn("Restore")
.Does(() =>
{
DotNetCoreBuild(
DotNetBuild(
".",
new DotNetCoreBuildSettings()
new DotNetBuildSettings()
{
Configuration = configuration,
NoRestore = true,
Expand All @@ -41,9 +41,9 @@ Task("Test")
.Description("Runs unit tests and outputs test results to the artefacts directory.")
.DoesForEach(GetFiles("./test/**/*.csproj"), project =>
{
DotNetCoreTest(
DotNetTest(
project.ToString(),
new DotNetCoreTestSettings()
new DotNetTestSettings()
{
Blame = true,
Collectors = new string[] { "XPlat Code Coverage" },
Expand All @@ -63,15 +63,15 @@ Task("Pack")
.Description("Creates NuGet packages and outputs them to the artefacts directory.")
.Does(() =>
{
var buildSettings = new DotNetCoreMSBuildSettings();
var buildSettings = new DotNetMSBuildSettings();
if (!BuildSystem.IsLocalBuild)
{
buildSettings.WithProperty("ContinuousIntegrationBuild", "true");
}
DotNetCorePack(
DotNetPack(
".",
new DotNetCorePackSettings()
new DotNetPackSettings()
{
Configuration = configuration,
IncludeSymbols = true,
Expand Down

0 comments on commit 7651499

Please sign in to comment.