public void UpdateAssemblyInfo(VersionVariables variables) { var gitVersionOptions = options.Value; if (gitVersionOptions.AssemblyInfo.ShouldUpdate) { using (assemblyInfoFileUpdater) { assemblyInfoFileUpdater.Execute(variables, new AssemblyInfoContext(gitVersionOptions.WorkingDirectory, gitVersionOptions.AssemblyInfo.EnsureAssemblyInfo, gitVersionOptions.AssemblyInfo.Files.ToArray())); } } }
public void UpdateAssemblyInfo(VersionVariables variables) { var gitVersionOptions = options.Value; var assemblyInfoContext = new AssemblyInfoContext(gitVersionOptions.WorkingDirectory, gitVersionOptions.AssemblyInfo.EnsureAssemblyInfo, gitVersionOptions.AssemblyInfo.Files.ToArray()); if (gitVersionOptions.AssemblyInfo.UpdateProjectFiles) { using (projectFileUpdater) { projectFileUpdater.Execute(variables, assemblyInfoContext); } } else if (gitVersionOptions.AssemblyInfo.UpdateAssemblyInfo) { using (assemblyInfoFileUpdater) { assemblyInfoFileUpdater.Execute(variables, assemblyInfoContext); } } }