dotnet / maintenance-packages

Repository that hosts packages from the .NET platform whose original home/branch is not building any longer.
MIT License
22 stars 10 forks source link

The FileVersions and PackageVersions for projects within the repository are less than the last package shipped. #100

Closed carlossanlop closed 4 weeks ago

carlossanlop commented 3 months ago

Affects at least HashCode and Xml.

ViktorHofer commented 3 months ago

From what I can see, the PackageVersion is correctly set-up everywhere but the AssemblyFileVersion assembly metadata is definitely lower than the last shipped versions for S.X.XPath.XmlDocument.

carlossanlop commented 4 weeks ago

Affects at least HashCode and Xml.

Microsoft.Bcl.HashCode looks correct:

Latest DLL from NuGet.org:

Latest DLL from dotnet-libraries feed:

The latest Version in nuget matches the VersionPrevis and PackageValidationBaselineVersion:

Image

  <PropertyGroup>
    <IsPackable>true</IsPackable>
    <VersionPrefix>1.1.1</VersionPrefix>
    <VersionPrefix Condition="'$(IsPackable)' == 'true'">6.0.0</VersionPrefix>
    <PackageValidationBaselineVersion>1.1.1</PackageValidationBaselineVersion>
  </PropertyGroup>
carlossanlop commented 4 weeks ago

but the AssemblyFileVersion assembly metadata is definitely lower than the last shipped versions for S.X.XPath.XmlDocument.

System.Xml.XPath.XmlDocument is wrong:

Laetst DLL from NuGet.org

Latest DLL from dotnet-libraries feed:

So what happened to the 4.3.0 that we have in nuget?

Image

I'm confused. it's the only assembly where the VersionPrefix and PackageValidationBaselineVersion did not match this number:

  <PropertyGroup>
    <IsPackable>true</IsPackable>
    <VersionPrefix>4.3.0</VersionPrefix>
    <VersionPrefix Condition="'$(IsPackable)' == 'true'">4.4.0</VersionPrefix>
    <PackageValidationBaselineVersion>4.3.0</PackageValidationBaselineVersion>
  </PropertyGroup>

In the 1.1 corefx tag, the file under /pkg/Micorosoft.Private.PackageBaseline/packageIndex.json has these numbers too: https://github.com/dotnet/corefx/blob/26264e3fd68356ff1a98375161b67b4426d02774/pkg/Microsoft.Private.PackageBaseline/packageIndex.json#L2629-L2641

    "System.Xml.XPath.XmlDocument": {
      "StableVersions": [
        "4.0.1",
        "4.0.0",
        "4.3.0"
      ],
      "BaselineVersion": "4.3.0",
      "AssemblyVersionInPackageVersion": {
        "4.0.1.0": "4.0.1",
        "4.0.2.0": "4.3.0",
        "4.0.0.0": "4.0.0"
      }
    },

So where did that 4.6.0 come from?