Skip to content

Commit e4d7891

Browse files
Update Cake Tool to v1.3.0
1 parent 16025ef commit e4d7891

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
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: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ Task("build")
3131
NoRestore = true,
3232
NoIncremental = false,
3333
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")
34+
.SetVersion(buildVersion.Version)
35+
.SetAssemblyVersion(buildVersion.AssemblyVersion)
36+
.SetFileVersion(buildVersion.FileVersion)
37+
.SetContinuousIntegrationBuild()
3838
});
3939
});
4040

@@ -68,9 +68,11 @@ Task("pack")
6868
NoRestore = true,
6969
NoBuild = true,
7070
OutputDirectory = "./artifact/nuget",
71-
MSBuildSettings = new DotNetCoreMSBuildSettings()
72-
.WithProperty("Version", buildVersion.Version)
73-
.WithProperty("PackageReleaseNotes", releaseNotes)
71+
MSBuildSettings = new DotNetCoreMSBuildSettings
72+
{
73+
Version = buildVersion.Version,
74+
PackageReleaseNotes = releaseNotes,
75+
},
7476
});
7577
});
7678

0 commit comments

Comments
 (0)