dotnet / dotnet/docs-maui

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

Open
#2,056 2 comments 0 reactions 0 assignees View on GitHub
doc-enhancement dotnet-maui/subsvc dotnet-mobile/svc Pri2
Dominant language
No language data
Stars
282
Forks
265
Avg merge
2d 2h
Merged PRs (30d)
19

Description

### 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-unpackaged-cli?view=net-maui-8.0

### Content source URL

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

### Document Version Independent Id

912ce2ed-fd27-02ad-d94a-eed9ed756d59

### Article author

@davidbritch

### Metadata

* ID: 912ce2ed-fd27-02ad-d94a-eed9ed756d59
* Service: **dotnet-mobile**
* Sub-service: **dotnet-maui**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.