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

Fix assembly informational version in System.Xml.XPath.XmlDocument #146

Closed carlossanlop closed 3 weeks ago

carlossanlop commented 3 weeks ago

Fixes https://github.com/dotnet/maintenance-packages/issues/100

Before:

After:

Note that in this change I'm using:

This helped me ensure that AssemblyInformationalVersion was greater than in the last release. I do not know where that 4.6 is coming from.

I tried using VersionPrefix = 4.6.0 but I get the error below, so I needed it to match the Version that shows up in NuGet.org.

C:\Users\calope\source\repos\maintenance-packages\src\System.Xml.XPath.XmlDocument\src\System.Xml.XPath.XmlDocument.csproj : error NU1102: Unable to find package System.Xml.XPath.XmlDocument with version (= 4.6.24705.1) [C:\Users\calope\source\repos\maintenance-packages\.dotnet\sdk\8.0.403\NuGet.targets]
C:\Users\calope\source\repos\maintenance-packages\src\System.Xml.XPath.XmlDocument\src\System.Xml.XPath.XmlDocument.csproj : error NU1102:   - Found 14 version(s) in dotnet-public [ Nearest version: 4.3.0 ] [C:\Users\calope\source\repos\maintenance-packages\.dotnet\sdk\8.0.403\NuGet.targets]
C:\Users\calope\source\repos\maintenance-packages\src\System.Xml.XPath.XmlDocument\src\System.Xml.XPath.XmlDocument.csproj : error NU1102:   - Found 0 version(s) in dotnet-eng [C:\Users\calope\source\repos\maintenance-packages\.dotnet\sdk\8.0.403\NuGet.targets]