Skip to content

Commit e92db5e

Browse files
committed
GH-2270 - /updateassemblyinfo does not work with /ensureassemblyinfo
1 parent 3b8b9e8 commit e92db5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GitVersionExe/ArgumentParser.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ public Arguments ParseArguments(string[] commandLineArguments)
104104
: firstArgument;
105105

106106
arguments.TargetPath = arguments.TargetPath.TrimEnd('/', '\\');
107-
arguments.UpdateAssemblyInfoFileName = ResolveFiles(arguments.TargetPath, arguments.UpdateAssemblyInfoFileName).ToHashSet();
107+
108+
if (!arguments.EnsureAssemblyInfo) arguments.UpdateAssemblyInfoFileName = ResolveFiles(arguments.TargetPath, arguments.UpdateAssemblyInfoFileName).ToHashSet();
108109
arguments.NoFetch = arguments.NoFetch || buildAgent != null && buildAgent.PreventFetch();
109110

110111
return arguments;

0 commit comments

Comments
 (0)