Skip to content

Commit 94da746

Browse files
Update Cake Tool to v1.3.0
1 parent 0e7b7fc commit 94da746

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
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: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Task("build")
3232
.SetConfiguration(configuration)
3333
.UseToolVersion(MSBuildToolVersion.VS2019)
3434
.WithTarget("Rebuild")
35-
.WithProperty("Version", buildVersion.Version)
36-
.WithProperty("FileVersion", buildVersion.FileVersion)
37-
.WithProperty("ContinuousIntegrationBuild", "true")
35+
.SetVersion(buildVersion.Version)
36+
.SetFileVersion(buildVersion.FileVersion)
37+
.SetContinuousIntegrationBuild()
3838
);
3939
});
4040

@@ -70,9 +70,11 @@ Task("pack")
7070
IncludeSymbols = true,
7171
IncludeSource = true,
7272
OutputDirectory = "./artifact/nuget",
73-
MSBuildSettings = new DotNetCoreMSBuildSettings()
74-
.WithProperty("Version", buildVersion.Version)
75-
.WithProperty("PackageReleaseNotes", releaseNotes)
73+
MSBuildSettings = new DotNetCoreMSBuildSettings
74+
{
75+
Version = buildVersion.Version,
76+
PackageReleaseNotes = releaseNotes,
77+
},
7678
});
7779
});
7880

0 commit comments

Comments
 (0)