-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Updating Assembly info specifying file resulting in duplicate attributes being defined. #2278
Comments
We have a similar step in our Azure build pipeline, and what I noticed is that GitVersion 5.3.2 no longer honors the Had some hope that this was covered in #2270, but the issue is still present in 5.3.3. We reverted to GitVersion 5.2.4 which works fine. |
Hi, to add to this we use the /updateassemblyinfofilename argument followed by a relative path to the git root to a single file. This file is shared by all our projects so we have common version information. |
Same issue using GitVersion.Tool 5.3.5 x64. The UpdateAssemblyInfoFilename is a valid path but it's ignored during the process. It scans for the regular project AssemblyInfo files and updates these individually. Build fails with the "Duplicate" version attribute errors. |
Experiencing the same issue on 5.3.7. |
I've encountered the very same issue with:
I've had to resort to including a second third-party task ( |
A pull request fixing this would be highly appreciated. 🙏🏼 |
#2841 resolved this. |
Updating Assembly info specifying file resulting in duplicate attributes being defined.
The command line being executed is:
F:\agents\agent00_work_tool\GitVersion.Tool\5.3.3\x64\dotnet-gitversion.exe F:/agents/agent00/_work/12/s /output json /output buildserver /updateassemblyinfo F:\agents\agent00_work\12\s/CommonAssemblyInfo.cs
and at the end of the log I see:
INFO [05/17/20 14:26:17:15] Updating assembly info files
INFO [05/17/20 14:26:17:15] Found 51 files
INFO [05/17/20 14:26:18:21] Done writing
and the errors are CS0579: Duplicate AssemblyVersion, AssemblyFileVersion, AssemblyInformationalVersion attribute
Perhaps I'm missing an option in the build?
Your Environment
Azure Devops:
The following two tasks are configured. I have been using the original GitVersion task for a few years now and I'm just now updating to the new gittools tasks.
The text was updated successfully, but these errors were encountered: