Skip to content

-p:RuntimeIdentifierOverride=win10-x64 throws an error on .NET8 (packaged CLI) #2055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BurkusCat opened this issue Feb 1, 2024 · 2 comments

Comments

@BurkusCat
Copy link

BurkusCat commented Feb 1, 2024

Type of issue

Outdated article

Description

When using win10-x64 (or win10-x86), an error is thrown during build:

Error: C:\Users\runneradmin\AppData\Local\Microsoft\dotnet\sdk\8.0.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x64' is not recognized. See https://aka.ms/netsdk1083 for more information. [D:\a\maui-samples\maui-samples\8.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\WeatherTwentyOne.csproj::TargetFramework=net8.0-maccatalyst]

win-x64 should be used instead. This allows the build to be successfully completed. However, I will note that the produced build fails to start.

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/publish-cli?view=net-maui-8.0

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/windows/deployment/publish-cli.md

Document Version Independent Id

d0d904f8-2ff9-df92-6399-dc2ac35310b7

Article author

@davidbritch

Metadata

  • ID: d0d904f8-2ff9-df92-6399-dc2ac35310b7
  • Service: dotnet-mobile
  • Sub-service: dotnet-maui
@davidbritch
Copy link
Contributor

Dupe of #2056

@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Feb 2, 2024
@BurkusCat
Copy link
Author

Hey, @davidbritch, just wanted to point out this issue is for the packaged instructions and other one was for the unpackaged instructions. I reported both pages :)

@BurkusCat BurkusCat changed the title -p:RuntimeIdentifierOverride=win10-x64 throws an error on .NET8 -p:RuntimeIdentifierOverride=win10-x64 throws an error on .NET8 (packaged CLI) Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants