diff --git a/Chocolatey.Cake.Recipe/Content/eazfuscator.cake b/Chocolatey.Cake.Recipe/Content/eazfuscator.cake index c21f5ac..53fb60c 100644 --- a/Chocolatey.Cake.Recipe/Content/eazfuscator.cake +++ b/Chocolatey.Cake.Recipe/Content/eazfuscator.cake @@ -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)); diff --git a/Chocolatey.Cake.Recipe/Content/gitversion.cake b/Chocolatey.Cake.Recipe/Content/gitversion.cake index 4f781f7..773ac3a 100644 --- a/Chocolatey.Cake.Recipe/Content/gitversion.cake +++ b/Chocolatey.Cake.Recipe/Content/gitversion.cake @@ -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