Skip to content

Commit

Permalink
Remove AssemblyVersion pinned constraint for .NET Standard (#160)
Browse files Browse the repository at this point in the history
* Bump AssemblyVersion for .NET Standard

* Exclude SqlClient

* Remove the TargetFramework condition

* Remove the TargetFramework condition

* space

* Adjust versions based on feedback

* Suppress expected ApiCompat errors

* Move comment
  • Loading branch information
carlossanlop authored Nov 11, 2024
1 parent bda405f commit 28570b9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 11 deletions.
11 changes: 11 additions & 0 deletions src/System.Buffers/src/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://learn.microsoft.com/dotnet/fundamentals/package-validation/diagnostic-ids -->
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Suppression>
<DiagnosticId>CP0003</DiagnosticId>
<Target>System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51</Target>
<Left>lib/netstandard2.0/System.Buffers.dll</Left>
<Right>lib/netstandard2.0/System.Buffers.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
</Suppressions>
5 changes: 2 additions & 3 deletions src/System.Buffers/src/System.Buffers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
<TargetFrameworks>netstandard2.0;$(NetFrameworkMinimum);netcoreapp2.1</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<StrongNameKeyId>Open</StrongNameKeyId>
<AssemblyVersion>4.0.3.0</AssemblyVersion> <!-- NO-INCREMENT: This version is frozen for .NET Standard and .NETCoreApp because the assembly ships inbox. -->
<AssemblyVersion>4.0.2.0</AssemblyVersion><!-- NO-INCREMENT: This version is frozen for .NET Standard and .NETCoreApp because the assembly ships inbox. This version matches the applicable ref assembly. -->
<IsPlaceholderTargetFramework Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">true</IsPlaceholderTargetFramework>
</PropertyGroup>

<!-- Package servicing properties -->
<PropertyGroup>
<IsPackable>true</IsPackable>
<VersionPrefix>4.5.1</VersionPrefix>
<VersionPrefix Condition="'$(IsPackable)' == 'true'">4.6.0</VersionPrefix>
<AssemblyVersion Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.0.3.0</AssemblyVersion>
<AssemblyVersion Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.0.3.0</AssemblyVersion><!-- This version matches the applicable lib assembly. -->
<AssemblyVersion Condition="'$(IsPackable)' == 'true' and $([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.0.4.0</AssemblyVersion>
<PackageValidationBaselineVersion>4.5.1</PackageValidationBaselineVersion>
</PropertyGroup>
Expand Down
5 changes: 2 additions & 3 deletions src/System.Memory/src/System.Memory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<StrongNameKeyId>Open</StrongNameKeyId>
<Nullable>disable</Nullable>
<AssemblyVersion>4.0.1.2</AssemblyVersion><!-- NO-INCREMENT: This version is frozen for .NET Standard and .NETCoreApp because the assembly ships inbox. -->
<IsPlaceholderTargetFramework Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">true</IsPlaceholderTargetFramework>
</PropertyGroup>

Expand All @@ -14,8 +13,8 @@
<IsPackable>true</IsPackable>
<VersionPrefix>4.5.5</VersionPrefix>
<VersionPrefix Condition="'$(IsPackable)' == 'true'">4.6.0</VersionPrefix>
<AssemblyVersion Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.0.1.2</AssemblyVersion>
<AssemblyVersion Condition="'$(IsPackable)' == 'true' and $([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.1.2</AssemblyVersion>
<AssemblyVersion Condition="'$(IsPackable)' == 'true'">4.0.2.0</AssemblyVersion><!-- Must increment after a new version is released. Keep it under 4.1.xx. -->
<PackageValidationBaselineVersion>4.5.5</PackageValidationBaselineVersion>
</PropertyGroup>

Expand Down
11 changes: 11 additions & 0 deletions src/System.Numerics.Vectors/src/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://learn.microsoft.com/dotnet/fundamentals/package-validation/diagnostic-ids -->
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Suppression>
<DiagnosticId>CP0003</DiagnosticId>
<Target>System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Target>
<Left>lib/netstandard2.0/System.Numerics.Vectors.dll</Left>
<Right>lib/netstandard2.0/System.Numerics.Vectors.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
</Suppressions>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netcoreapp2.0;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
<AssemblyVersion>4.1.4.0</AssemblyVersion><!-- NO-INCREMENT: This version is frozen for .NET Standard and .NETCoreApp because the assembly ships inbox. -->
<AssemblyVersion>4.1.3.0</AssemblyVersion><!-- NO-INCREMENT: This version is frozen for .NET Standard and .NETCoreApp because the assembly ships inbox. This version matches the applicable ref assembly. -->
<IsPlaceholderTargetFramework Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">true</IsPlaceholderTargetFramework>
</PropertyGroup>

Expand All @@ -13,7 +13,7 @@
<IsPackable>true</IsPackable>
<VersionPrefix>4.5.0</VersionPrefix>
<VersionPrefix Condition="'$(IsPackable)' == 'true'">4.6.0</VersionPrefix>
<AssemblyVersion Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.1.4.0</AssemblyVersion>
<AssemblyVersion Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.1.4.0</AssemblyVersion><!-- This version matches the applicable lib assembly. -->
<AssemblyVersion Condition="'$(IsPackable)' == 'true' and $([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.1.5.0</AssemblyVersion>
<PackageValidationBaselineVersion>4.5.0</PackageValidationBaselineVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFrameworks>$(NetFrameworkMinimum);netstandard2.0;netcoreapp2.1</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<StrongNameKeyId>Open</StrongNameKeyId>
<AssemblyVersion>4.2.0.1</AssemblyVersion> <!-- NO-INCREMENT: This version is frozen for .NET Standard and .NETCoreApp because the assembly ships inbox. -->
<IsPlaceholderTargetFramework Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">true</IsPlaceholderTargetFramework>
</PropertyGroup>

Expand All @@ -13,8 +12,8 @@
<IsPackable>true</IsPackable>
<VersionPrefix>4.5.4</VersionPrefix>
<VersionPrefix Condition="'$(IsPackable)' == 'true'">4.6.0</VersionPrefix>
<AssemblyVersion Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.2.0.1</AssemblyVersion>
<AssemblyVersion Condition="'$(IsPackable)' == 'true' and $([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.0.1</AssemblyVersion>
<AssemblyVersion Condition="'$(IsPackable)' == 'true'">4.2.1.0</AssemblyVersion><!-- Must increment after a new version is released. Keep it under 4.3.xx. -->
<PackageValidationBaselineVersion>4.5.4</PackageValidationBaselineVersion>
</PropertyGroup>

Expand Down

0 comments on commit 28570b9

Please sign in to comment.