Binding projects don't work in .NET 9 RC 2 #21407
Labels
bug
If an issue is a bug or a pull request a bug fix
generator
Issues affecting the generator
regression
The issue or pull request is a regression
Milestone
Running bgen with
dotnet
from .NET 9 RC 2 yields an error like this:Looking at a binlog, this is the reason:
Which is because bgen was built for a newer .NET runtime than RC 2:
And that's because it's the dependency we have in
eng/Version.Details.xml
:xamarin-macios/eng/Version.Details.xml
Line 16 in a6599c7
The good news is that this will automatically fix itself for the final release.
It might be possible to work around this by installing a daily .NET 9 RTM build from here: https://github.com/dotnet/sdk/blob/main/documentation/package-table.md
This is partially a side effect of the fact that there were no public
.NET 9 RC 2
.NET builds we could build against:$ darc get-latest-build --repo dotnet/sdk --channel '.NET 9.0.1xx SDK RC 2' No latest build found matching the specified criteria
Which meant we were building with an earlier version of .NET 9 (from the
.NET 9.0.1xx SDK
channel).The second part to this is that not every .NET version from the
.NET 9.0.1xx SDK
channel can build projects that can run on the released version of RC 2, because they may reference anrtm
version of dotnet/runtime. This is evidenced by this maestro bump: f419cce, which bumps to:This means any projects built with this version of .NET 9 will produce *.runtimeconfig.json file requiring "Microsoft.NETCore.App.Ref=9.0.0-rtm.24475.3", which the public .NET 9 RC 2 release doesn't fulfill.
The text was updated successfully, but these errors were encountered: