You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Solution build fails after gitversion/execution due to version attributes duplication.
Expected Behavior
Version attributes are set only in 1 file specified with /updateassemblyinfofilename argument.
Actual Behavior
Version attributes are set in all the AssemblyInfo.cs files + in file specified with /updateassemblyinfofilename argument.
Build fails because of the version attributes duplication
I also tried to pass arguments via Additional GitVersion arguments field, but no success either:
dotnet-gitversion D:/a/1/s /output json /output buildserver /config D:\a\1\s\src\GitVersion.yml /updateassemblyinfofilename D:\a\1\s\src\SharedAssemblyInfo.cs
Unhandled exception. GitVersion.WarningException: Could not parse command line parameter '/updateassemblyinfofilename'.
Context
The solution contains 13 projects. AssemblyInfo.cs files without versioning attributes in all the 13 projects are linked to the SharedAssemblyInfo.cs file with versioning attributes.
I'm trying to target SharedAssemblyInfo.cs only, but all the assembly info files are modified instead.
Your Environment
Version Used: gitversion/setup 0.9.10, gitversion/execute 0.9.10 with version spec 5.6.10
Operating System and version: Microsoft Windows Server 2016
The text was updated successfully, but these errors were encountered:
I got a little bit too fixated on the idea of sharing version info.
I've brought version attributes back to each individual AssemblyInfo.cs and removed SharedAssemblyInfo.cs. Now it works just fine :)
Describe the bug
Solution build fails after
gitversion/execution
due to version attributes duplication.Expected Behavior
Version attributes are set only in 1 file specified with
/updateassemblyinfofilename
argument.Actual Behavior
Version attributes are set in all the
AssemblyInfo.cs
files + in file specified with/updateassemblyinfofilename
argument.Build fails because of the version attributes duplication
Steps to Reproduce
Here's the task configuration YAML:
And command it produced upon execution:
I also tried to pass arguments via
Additional GitVersion arguments
field, but no success either:Context
The solution contains 13 projects.
AssemblyInfo.cs
files without versioning attributes in all the 13 projects are linked to theSharedAssemblyInfo.cs
file with versioning attributes.I'm trying to target
SharedAssemblyInfo.cs
only, but all the assembly info files are modified instead.Your Environment
0.9.10
, gitversion/execute0.9.10
with version spec5.6.10
The text was updated successfully, but these errors were encountered: