Skip to content
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

Remove AssemblyVersion pinned constraint for .NET Standard #160

Merged
merged 8 commits into from
Nov 11, 2024

Conversation

carlossanlop
Copy link
Member

@carlossanlop carlossanlop commented Nov 8, 2024

Fixes #159

We need to make sure that the AssemblyVersion for the netstandard2.0 DLLs of the new packages is greater than the AssemblyVersion for the netstandard2.0 DLLs of the last released packages in nuget.org, similar to what we've been doing for .NET Framework AssemblyVersions.

For some of these cases we need to be mindful of keeping the new netstandard2.0 AssemblyVersion under the AssemblyVersion of the last released netcoreappX.X version.

I collected all the numbers before and after:


System.Buffers

C:\Program Files\dotnet (netcoreapp2.1):

  • AssemblyVersion 4.0.3.0

nuget.org (netstandard2.0):

  • AssemblyVersion 4.0.3.0

main (netstandard2.0):

  • AssemblyVersion 4.0.3.0

This PR (netstandard2.0):

  • AssemblyVersion 4.0.4.0

System.Memory

C:\Program Files\dotnet (netcoreapp2.1):

  • AssemblyVersion 4.1.0.0

nuget.org (netstandard2.0):

  • AssemblyVersion 4.0.1.2

main (netstandard2.0):

  • AssemblyVersion 4.0.1.2

This PR (netstandard2.0):

  • AssemblyVersion 4.0.2.0 (stays under 4.1.0.0)

System.Numerics.Vectors

C:\Program Files\dotnet (netcoreapp2.1):

  • AssemblyVersion 4.1.4.0

nuget.org (netstandard2.0):

  • AssemblyVersion 4.1.4.0

main (netstandard2.0):

  • AssemblyVersion 4.1.4.0

This PR (netstandard2.0):

  • AssemblyVersion 4.1.5.0

System.Runtime.CompilerServices.Unsafe

C:\Program Files\dotnet (net6.0):

  • AssemblyVersion 6.0.0.0

nuget.org (netstandard2.0):

  • AssemblyVersion 6.0.0.0

main (netstandard2.0):

  • AssemblyVersion 6.0.0.0

This PR (netstandard2.0):

  • AssemblyVersion 6.0.1.0

System.Threading.Tasks.Extensions

C:\Program Files\dotnet (netcoreapp2.1):

  • AssemblyVersion 4.3.0.0

nuget.org (netstandard2.0):

  • AssemblyVersion 4.2.0.1

main (netstandard2.0):

  • AssemblyVersion 4.2.0.1

This PR (netstandard2.0):

  • AssemblyVersion 4.2.1.0 (stays under 4.3.0.0)

System.Reflection.DispatchProxy

C:\Program Files\dotnet (netcoreapp3.1):

  • AssemblyVersion 4.0.6.0

nuget.org (netstandard2.0):

  • AssemblyVersion 4.0.6.0

main (netstandard2.0):

  • AssemblyVersion 4.0.6.0

This PR (netstandard2.0):

  • AssemblyVersion 4.0.7.0

System.Data.SqlClient

This assembly does not need the change.

@carlossanlop carlossanlop self-assigned this Nov 8, 2024
@carlossanlop
Copy link
Member Author

Looking at the errors.

@carlossanlop carlossanlop changed the title Bump AssemblyVersion for .NET Standard Remove AssemblyVersion pinned constraint for .NET Standard Nov 8, 2024
@carlossanlop carlossanlop force-pushed the BumpAssemblyVersionNetStandard branch from 13230a8 to 2cf036a Compare November 8, 2024 23:39
Copy link
Member

@ericstj ericstj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You had already mentioned offline that you intended to reduce this PR to just System.Memory and System.Threading.Tasks.Extensions. I confirmed that through inspecting assemblies in packages and ref packs. I added a couple more comments around things that we might want to consider for System.Buffers and System.Numerics.Vectors. Looks like those two were different because of the reference assemblies that they used to ship.

@ViktorHofer
Copy link
Member

ViktorHofer commented Nov 11, 2024

In general, if a previously frozen AssemblyVersion property isn't frozen anymore, please move it into the PropertyGroup that contains all the moving versions. And put the properties with the same name together.

@ViktorHofer ViktorHofer merged commit 28570b9 into dotnet:main Nov 11, 2024
5 checks passed
@carlossanlop carlossanlop deleted the BumpAssemblyVersionNetStandard branch November 11, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refine System.Memory assembly version
3 participants