Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #226 from getsentry/feature/optimize
Browse files Browse the repository at this point in the history
Set the MSBuild optimize property to true
  • Loading branch information
asbjornu authored Mar 11, 2018
2 parents fbaaf25 + e595e1b commit 037a425
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,26 @@ Task("Build")
var settings = new MSBuildSettings
{
Configuration = configuration + "-" + framework,
ToolVersion = MSBuildToolVersion.VS2017,
ToolVersion = MSBuildToolVersion.VS2017
};
settings.WithProperty("TargetFramework", new string[] { framework });
settings.WithProperty("TargetFramework", new string[] { framework })
.WithProperty("Optimize", new string[] { "true" });
MSBuild(solution, settings);
}
foreach (var framework in dotnetFrameworks)
{
DotNetCoreBuild(solution, new DotNetCoreBuildSettings
var settings = new DotNetCoreBuildSettings
{
Framework = framework,
Configuration = configuration + "-" + framework,
});
MSBuildSettings = new DotNetCoreMSBuildSettings()
.WithProperty("Optimize", new string[] { "true" })
};
DotNetCoreBuild(solution, settings);
}
});

Expand Down

0 comments on commit 037a425

Please sign in to comment.