-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Increment source generator assembly versions with every build #58836
Conversation
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsFixes #58274
|
@@ -16,6 +16,11 @@ | |||
<Import Project="$(RepositoryEngineeringDir)resources.targets" /> | |||
<Import Project="..\..\Directory.Build.targets" /> | |||
|
|||
<!-- To suppress warnings about reseting the assembly version.--> | |||
<PropertyGroup Condition="'$(AutoGenerateAssemblyVersion)' == 'true'"> | |||
<AssemblyVersion></AssemblyVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that this is the warning you're avoiding:
https://github.com/dotnet/arcade/blob/20daa7891e53bd30fc12640fad4a0a9de15ec953/src/Microsoft.DotNet.Arcade.Sdk/tools/Version.targets#L15
I see that you have to do this, because our default AssemblyVersion is set in props, before a project might set AutoGenerateAssemblyVersion
.
So this allows a project to override the repo wide AssemblyVersion with an automatically set AssemblyVersion. I guess an alternative would be to have the repo-wide AssemblyVersion be set in targets and consider if some project set AutoGenerateAssemblyVersion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i didnt do that because this needs to be ported to 6.0 and don't want to cause any side-effects by moving the assembly version to targets file. There shouldnt be any but didnt want to take unnecessary risk. Also it would be nice to have all versioning properties in a single file :P
...Microsoft.Extensions.Logging.Abstractions/gen/Microsoft.Extensions.Logging.Generators.csproj
Outdated
Show resolved
Hide resolved
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1219776519 |
@Anipik generally best to not close the issue until the port is complete. That helps make sure we don't miss a port. |
opened (Y) |
Fixes #58274