Skip to content

Commit

Permalink
Merge branch 'release/0.15.0'
Browse files Browse the repository at this point in the history
* release/0.15.0:
  (#69) Remove stamp of CCMVersion TeamCity param
  (#67) Reset eazfuscator settings each iteration
  • Loading branch information
gep13 committed Jul 13, 2022
2 parents 02c741f + 1015897 commit 1089f48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Chocolatey.Cake.Recipe/Content/eazfuscator.cake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ BuildParameters.Tasks.ObfuscateAssembliesTask = Task("Obfuscate-Assemblies")

foreach (var file in BuildParameters.GetFilesToObfuscate())
{
// This needs to be "reset" so that previously set properties aren't in place for the next iteration.
settings = new EazfuscatorNetSettings();

var fileName = file.GetFilenameWithoutExtension();
var msbuildPathFilePath = new FilePath(string.Format("{0}/{1}/{1}.csproj", BuildParameters.SourceDirectoryPath.FullPath, fileName));

Expand Down
6 changes: 0 additions & 6 deletions Chocolatey.Cake.Recipe/Content/gitversion.cake
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,6 @@ public class BuildVersion
{
// use the asserted package version for the build number in TeamCity
context.BuildSystem().TeamCity.SetBuildNumber(packageVersion);

if (BuildParameters.Title == "ChocolateySoftware.ChocolateyManagement")
{
// Only set this when it is a CCM Build
context.BuildSystem().TeamCity.SetParameter("CCMVersion", packageVersion);
}
}

return new BuildVersion
Expand Down

0 comments on commit 1089f48

Please sign in to comment.