maui: [8.0.100-rc.1.23455.8] dotnet build for windows fails with error NETSDK1083: The specified RuntimeIdentifier "win10-x64" is not recognized
Description
Building a new maui-blazor app on windows fails with the following error:
NETSDK1083: The specified RuntimeIdentifier "win10-x64" is not recognized
Steps to Reproduce
- Install dotnet 8.0.100-rc.1.23455.8
dotnet workload install maui-windowsdotnet new maui-blazor- Remove
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>so only windows is left dotnet build
Link to public reproduction project repository
No response
Version with bug
8.0.100-rc.1.23455.8
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.0-preview.7.8842
Affected platforms
Windows
Affected platform versions
net8.0-windows10.0.19041.0
Did you find any workaround?
https://github.com/dotnet/maui/issues/17330#issuecomment-1716593275
Relevant log output
dotnet build
MSBuild-Version 17.8.0-preview-23418-03+0125fc9fb für .NET
Wiederherzustellende Projekte werden ermittelt...
C:\Program Files\dotnet\sdk\8.0.100-rc.1.23455.8\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: Der ang
egebene RuntimeIdentifier "win10-x64" wird nicht erkannt. [C:\Users\Administrator\Desktop\test\test.csproj::TargetFramework=net8.0-windows10.0.19041.0]
Fehler beim Buildvorgang.
C:\Program Files\dotnet\sdk\8.0.100-rc.1.23455.8\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: Der ang
egebene RuntimeIdentifier "win10-x64" wird nicht erkannt. [C:\Users\Administrator\Desktop\test\test.csproj::TargetFramework=net8.0-windows10.0.19041.0]
0 Warnung(en)
1 Fehler
Verstrichene Zeit 00:00:01.03
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Reactions: 8
- Comments: 27 (20 by maintainers)
One workaround that you can do (and note it will disable the security/signing check, so use at your own risk) is to add
--skip-sign-checkto the CLI install:This will tell the CLI to NOT run the signing check after downloading. This should help the install complete.
I can confirm that it also works with
dotnet workload install maui-windows --skip-sign-check --source https://api.nuget.org/v3/index.jsonand<UseRidGraph>true</UseRidGraph>isn’t needed:Just noticed that
dotnet workload updateoutputs an error, since it isn’t in red I missed that 😄I can confirm that it works correctly without any workaround with .NET version
8.0.100-rc.1.23463.5.Post execution of the workload update command with this skip verification flag, the workload version is now pointing to RC1 on the Windows platform.
When I download https://www.nuget.org/packages/Microsoft.NET.Sdk.Maui.Manifest-8.0.100-rc.1.Msi.x64/8.0.0-rc.1.9171 and verify it like you with
dotnet nuget verify --all -v diag microsoft.net.sdk.maui.manifest-8.0.100-rc.1.msi.x64.8.0.0-rc.1.9171.nupkgit does succeed for me as well.Just for completeness here is the output of
dotnet workload install maui-windowson a clean machine in CI, there is the failed package validation and a bunch of8.0.0-preview.6versions. (In preview.7 there were only preview.7 versions.)Having a look, unfortunately .NET 8 RC 1 had a braking change to the way RIDs work, so the reason. for the error at the top is : https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/8.0/rid-graph
Now for the update failing, I’ll have a look. The signing issue is new so I’ll test on my clean devbox and see what I get.