Skip to content

Commit 16d9252

Browse files
Update Cake Tool to v1.3.0
1 parent d957410 commit 16d9252

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"cake.tool": {
6-
"version": "1.2.0",
6+
"version": "1.3.0",
77
"commands": [
88
"dotnet-cake"
99
]

build.cake

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ Task("build")
3030
Configuration = configuration,
3131
NoRestore = true,
3232
NoIncremental = false,
33-
MSBuildSettings = new DotNetCoreMSBuildSettings()
34-
.WithProperty("Version", buildVersion.Version)
35-
.WithProperty("AssemblyVersion", buildVersion.AssemblyVersion)
36-
.WithProperty("FileVersion", buildVersion.FileVersion)
37-
.WithProperty("ContinuousIntegrationBuild", BuildSystem.IsLocalBuild ? "false" : "true")
33+
MSBuildSettings = new DotNetCoreMSBuildSettings
34+
{
35+
Version = buildVersion.Version,
36+
AssemblyVersion = buildVersion.AssemblyVersion,
37+
FileVersion = buildVersion.FileVersion,
38+
ContinuousIntegrationBuild = BuildSystem.IsLocalBuild,
39+
},
3840
});
3941
});
4042

@@ -68,9 +70,11 @@ Task("pack")
6870
NoRestore = true,
6971
NoBuild = true,
7072
OutputDirectory = "./artifact/nuget",
71-
MSBuildSettings = new DotNetCoreMSBuildSettings()
72-
.WithProperty("Version", buildVersion.Version)
73-
.WithProperty("PackageReleaseNotes", releaseNotes)
73+
MSBuildSettings = new DotNetCoreMSBuildSettings
74+
{
75+
Version = buildVersion.Version,
76+
PackageReleaseNotes = releaseNotes,
77+
},
7478
});
7579
});
7680

0 commit comments

Comments
 (0)