diff --git a/build.cake b/build.cake index 4aa7f3b2..5a20289e 100644 --- a/build.cake +++ b/build.cake @@ -1,7 +1,7 @@ var target = Argument("Target", "Default"); var configuration = HasArgument("Configuration") ? Argument("Configuration") : - EnvironmentVariable("Configuration") is not null ? EnvironmentVariable("Configuration") : + HasEnvironmentVariable("Configuration") ? EnvironmentVariable("Configuration") : "Release"; var artefactsDirectory = Directory("./Artefacts"); @@ -20,7 +20,7 @@ Task("Restore") .IsDependentOn("Clean") .Does(() => { - DotNetCoreRestore(); + DotNetRestore(); }); Task("Build") @@ -28,9 +28,9 @@ Task("Build") .IsDependentOn("Restore") .Does(() => { - DotNetCoreBuild( + DotNetBuild( ".", - new DotNetCoreBuildSettings() + new DotNetBuildSettings() { Configuration = configuration, NoRestore = true, @@ -41,9 +41,9 @@ Task("Test") .Description("Runs unit tests and outputs test results to the artefacts directory.") .DoesForEach(GetFiles("./Tests/**/*.csproj"), project => { - DotNetCoreTest( + DotNetTest( project.ToString(), - new DotNetCoreTestSettings() + new DotNetTestSettings() { Blame = true, Collectors = new string[] { "Code Coverage", "XPlat Code Coverage" }, @@ -63,13 +63,13 @@ Task("Pack") .Description("Creates NuGet packages and outputs them to the artefacts directory.") .Does(() => { - DotNetCorePack( + DotNetPack( ".", - new DotNetCorePackSettings() + new DotNetPackSettings() { Configuration = configuration, IncludeSymbols = true, - MSBuildSettings = new DotNetCoreMSBuildSettings() + MSBuildSettings = new DotNetMSBuildSettings() { ContinuousIntegrationBuild = !BuildSystem.IsLocalBuild, }, diff --git a/dotnet-tools.json b/dotnet-tools.json index a28a2371..ed800ac9 100644 --- a/dotnet-tools.json +++ b/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "cake.tool": { - "version": "1.3.0", + "version": "2.0.0", "commands": [ "dotnet-cake" ]