[Bug 2040547] Re: Runtime version mismatch with nuget.org on .NET 8 RC2
Mateus Rodrigues de Morais
2040547 at bugs.launchpad.net
Thu Oct 26 17:38:08 UTC 2023
The version in PPA [0] with a patch [1] included to fix the error seems
to work as expected:
```
$ dotnet publish -r linux-x64
MSBuild version 17.8.0+6cdef4241 for .NET
Determining projects to restore...
Restored /root/PackageTest/PackageTest.csproj (in 3.16 sec).
/usr/lib/dotnet/sdk/8.0.100-rc.2.23502.1/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/PackageTest/PackageTest.csproj]
PackageTest -> /root/PackageTest/bin/Release/net8.0/linux-x64/PackageTest.dll
PackageTest -> /root/PackageTest/bin/Release/net8.0/linux-x64/publish/
```
[0] https://launchpad.net/~mateus-morais/+archive/ubuntu/dotnet8-rc2-runtime-version-fix
[1] https://github.com/dotnet/source-build/issues/3673#issuecomment-1779566707
** Changed in: dotnet8 (Ubuntu)
Status: New => In Progress
** Description changed:
Related to: https://github.com/dotnet/source-build/issues/3673
Microsoft's published .NET 8 RC2 has a runtime version of
8.0.0-rc.2.23479.6, while the VMR has a runtime version of
8.0.0-rc.2.23475.17.
This causes any RID-specific operation -- e.g. dotnet publish -r
linux-x64 -- to fail with the error:
```
- error NU1102: Unable to find package Microsoft.NETCore.App.Host.linux-x64 with version (= 8.0.0-rc.2.23475.17)
+ $ dotnet publish -r linux-x64
+ MSBuild version 17.8.0+6cdef4241 for .NET
+ Determining projects to restore...
+ /root/PackageTest/PackageTest.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.linux-x64 with version (= 8.0.0-rc.2.23475.17)
+ /root/PackageTest/PackageTest.csproj : error NU1102: - Found 140 version(s) in nuget.org [ Nearest version: 8.0.0-rc.2.23479.6 ]
+ Failed to restore /root/PackageTest/PackageTest.csproj (in 577 ms).
```
** Bug watch added: github.com/dotnet/source-build/issues #3673
https://github.com/dotnet/source-build/issues/3673
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dotnet8 in Ubuntu.
https://bugs.launchpad.net/bugs/2040547
Title:
Runtime version mismatch with nuget.org on .NET 8 RC2
Status in dotnet8 package in Ubuntu:
In Progress
Bug description:
Related to: https://github.com/dotnet/source-build/issues/3673
Microsoft's published .NET 8 RC2 has a runtime version of
8.0.0-rc.2.23479.6, while the VMR has a runtime version of
8.0.0-rc.2.23475.17.
This causes any RID-specific operation -- e.g. dotnet publish -r
linux-x64 -- to fail with the error:
```
$ dotnet publish -r linux-x64
MSBuild version 17.8.0+6cdef4241 for .NET
Determining projects to restore...
/root/PackageTest/PackageTest.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.linux-x64 with version (= 8.0.0-rc.2.23475.17)
/root/PackageTest/PackageTest.csproj : error NU1102: - Found 140 version(s) in nuget.org [ Nearest version: 8.0.0-rc.2.23479.6 ]
Failed to restore /root/PackageTest/PackageTest.csproj (in 577 ms).
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dotnet8/+bug/2040547/+subscriptions
More information about the foundations-bugs
mailing list