Reputation: 2997
I build a .NET solution through Github Actions like so:
dotnet build --configuration Release --no-restore --verbosity normal /p:Version=${VERSION}
VERSION
is set to the current repo tag. With each release, I can dynamically set the version.
The problem is this seems to be causing assemblies that have not changed to produce a different SHA. For example, when I run shasum
on a DLL, I see a different SHA even if there are no change changes.
Is there a way to make sure the version does not get included in SHA calculation?
I do not set AssemblyVersion
, FileVersion
, or BuildVersion
anywhere in the code (i.e. nothing in csproj, props, or cs files).
Upvotes: 0
Views: 33