Runtime version mismatch with nuget.org on .NET 8 RC2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dotnet8 (Ubuntu) |
Fix Released
|
Undecided
|
Mateus Rodrigues de Morais | ||
Mantic |
Fix Released
|
Undecided
|
Mateus Rodrigues de Morais | ||
Noble |
Fix Released
|
Undecided
|
Mateus Rodrigues de Morais |
Bug Description
[ Impact ]
* Users are currently unable to run RID-specific dotnet operations on a .NET
project, e.g. `dotnet build -r linux-x64`.
* Since this is a critical bug that could affect real-world scenarios of
building and publishing RID-specific applications, the fix is being
backported to Mantic.
* The upload includes a patch that was suggested by Microsoft [1] and fixes
the issue by updating the VMR source-built runtime version to the same one
Microsoft publishes, to prevent the .NET CLI tools from trying to download
a linux-x64 runtime package that does not exist.
[ Test Plan ]
* To reproduce the bug, one must install dotnet-sdk-8.0 version
8.0.
```
$ dotnet new console -o Test
$ cd Test
$ dotnet build # should work
$ dotnet build -r linux-x64 # should not work
```
* Version 8.0.100~
command working.
[ Where problems could occur ]
* The patch effectively only changes the version string of the resulting .NET
source-built runtime. No feature or behavior-related code changes are made.
* A regression can occur if a third-party software depends on the specific
version string of the runtime present in 8.0.0~rc2-0ubuntu1.
* This is highly unlikely as the vast majority of .NET software targets a
major .NET version, and the diff between both versions is in the build
section of the version string: 8.0.0-rc.2.23479.6 (new) vs
8.0.
[1] https:/
[2] https:/
Related branches
- Ubuntu Sponsors: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 70 lines (+50/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/0001-Fix-source-built-runtime-version-number.patch (+42/-0)
debian/patches/series (+1/-0)
summary: |
- Runtime version mismatch with nuget.org on RC2 + Runtime version mismatch with nuget.org on .NET 8 RC2 |
tags: | added: foundations-todo |
Changed in dotnet8 (Ubuntu Mantic): | |
assignee: | nobody → Mateus Rodrigues de Morais (mateus-morais) |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in dotnet8 (Ubuntu Mantic): | |
status: | In Progress → Fix Committed |
Changed in dotnet8 (Ubuntu Noble): | |
status: | In Progress → Fix Committed |
The version in PPA [0] with a patch [1] included to fix the error seems to work as expected:
``` st/PackageTest. csproj (in 3.16 sec). dotnet/ sdk/8.0. 100-rc. 2.23502. 1/Sdks/ Microsoft. NET.Sdk/ targets/ Microsoft. NET.RuntimeIden tifierInference .targets( 311,5): message NETSDK1057: You are using a preview version of .NET. See: https:/ /aka.ms/ dotnet- support- policy [/root/ PackageTest/ PackageTest. csproj] st/bin/ Release/ net8.0/ linux-x64/ PackageTest. dll st/bin/ Release/ net8.0/ linux-x64/ publish/
$ dotnet publish -r linux-x64
MSBuild version 17.8.0+6cdef4241 for .NET
Determining projects to restore...
Restored /root/PackageTe
/usr/lib/
PackageTest -> /root/PackageTe
PackageTest -> /root/PackageTe
```
[0] https:/ /launchpad. net/~mateus- morais/ +archive/ ubuntu/ dotnet8- rc2-runtime- version- fix /github. com/dotnet/ source- build/issues/ 3673#issuecomme nt-1779566707
[1] https:/