Skip to content

Commit bdc9900

Browse files
Update Cake Tool to v1.3.0
1 parent 7d5a2ce commit bdc9900

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
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: 17 additions & 11 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

@@ -70,9 +72,11 @@ Task("pack")
7072
IncludeSymbols = true,
7173
IncludeSource = true,
7274
OutputDirectory = "./artifact/nuget",
73-
MSBuildSettings = new DotNetCoreMSBuildSettings()
74-
.WithProperty("Version", buildVersion.Version)
75-
.WithProperty("PackageReleaseNotes", releaseNotes)
75+
MSBuildSettings = new DotNetCoreMSBuildSettings
76+
{
77+
Version = buildVersion.Version,
78+
PackageReleaseNotes = releaseNotes,
79+
},
7680
});
7781

7882
DotNetCorePack("./src/Ookii.Dialogs/Ookii.Dialogs.csproj", new DotNetCorePackSettings
@@ -83,9 +87,11 @@ Task("pack")
8387
IncludeSymbols = false,
8488
IncludeSource = false,
8589
OutputDirectory = "./artifact/nuget",
86-
MSBuildSettings = new DotNetCoreMSBuildSettings()
87-
.WithProperty("Version", buildVersion.Version)
88-
.WithProperty("PackageReleaseNotes", releaseNotes)
90+
MSBuildSettings = new DotNetCoreMSBuildSettings
91+
{
92+
Version = buildVersion.Version,
93+
PackageReleaseNotes = releaseNotes,
94+
},
8995
});
9096
});
9197

0 commit comments

Comments
 (0)