Skip to content

Commit 5085ed2

Browse files
committed
Tweaks to cake config
1 parent 38b46ed commit 5085ed2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/anglesharp.cake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ Task("Build")
5858
.IsDependentOn("Restore-Packages")
5959
.Does(() =>
6060
{
61-
var settings = new DotNetCoreMSBuildSettings();
62-
settings.WarningCodesAsMessage.Add("CS1591"); // During CI builds we don't want the output polluted by "warning CS1591: Missing XML comment" warnings
61+
var buildSettings = new DotNetCoreMSBuildSettings();
62+
buildSettings.WarningCodesAsMessage.Add("CS1591"); // During CI builds we don't want the output polluted by "warning CS1591: Missing XML comment" warnings
6363

6464
ReplaceRegexInFiles("./src/Directory.Build.props", "(?<=<Version>)(.+?)(?=</Version>)", version);
6565
DotNetCoreBuild($"./src/{solutionName}.sln", new DotNetCoreBuildSettings
6666
{
6767
Configuration = configuration,
68-
MSBuildSettings = settings
68+
MSBuildSettings = buildSettings
6969
});
7070
});
7171

@@ -76,7 +76,7 @@ Task("Run-Unit-Tests")
7676
var settings = new DotNetCoreTestSettings
7777
{
7878
Configuration = configuration,
79-
NoBuild = false
79+
NoBuild = false,
8080
};
8181

8282
if (isRunningOnAppVeyor)
@@ -185,7 +185,7 @@ Task("Publish-Release")
185185
{
186186
Name = version,
187187
Body = String.Join(Environment.NewLine, releaseNotes.Notes),
188-
Prerelease = releaseNotes.Version.ToString() == version,
188+
Prerelease = releaseNotes.Version.ToString() != version,
189189
TargetCommitish = "master",
190190
}).Wait();
191191
});

0 commit comments

Comments
 (0)