Description
When the runtime repo is built it outputs two packages for Microsoft.NETCore.App.Crossgen2
. One is for the target rid, and the other matches the rid of the SDK that is used to do the build.
So if you start out with the linux-x64
Microsoft SDK and build on Fedora 41, you end up with linux-x64
and fedora.f41-x64
for Microsoft.NETCore.App.Crossgen2
.
If you use that SDK again on Fedora 41, you end up with fedora.f41-x64
only.
And if you use that SDK on Fedora 42, the build fails to compile because the SDK doesn't know the Fedora 42 rid while compiling aspnetcore:
/home/tester/workdir/dotnet/src/aspnetcore/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.Composite.sfxproj : error NU1100: Unable to resolve 'Microsoft.NETCore.App.Crossgen2.linux-x64
For .NET 9, Private.SourceBuilt.Artifacts
only has a non-portable Crossgen2 and the aspnetcore build had no problem using it.
This doesn't impact common scenarios.
It would be nice if we can have it working again similar to .NET 9, where there is only a single Microsoft.NETCore.App.Crossgen2
in Private.SourceBuilt.Artifacts
which is for the non-portable rid.
Also for ILCompiler, there is a linux-x64
package that gets included: runtime.linux-x64.Microsoft.DotNet.ILCompiler.<version>.nupkg
whereas for 9.0, there is only a package for the non-portable rid.
Metadata
Metadata
Assignees
Type
Projects
Status