project.assets.json contains invalid targets
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Description
The `project.assets.json` generated from the maui template contains a target for an Android app running on an iOS simulator: `net8.0-android34.0/iossimulator-arm64`. Other nonsensical targets include `net8.0-ios17.2/android-arm` and `net8.0-maccatalyst17.2/android-x86`.
I noticed this behavior while trying to debug the following error in a production project (don’t know whether it’s related):
> Assets file '[project]/obj/project.assets.json' doesn't have a target for 'net8.0-maccatalyst/maccatalyst-arm64'. Ensure that restore has run and that you have included 'net8.0-maccatalyst' in the TargetFrameworks for your project. You may also need to include 'maccatalyst-arm64' in your project's RuntimeIdentifiers.
### Steps to Reproduce
``` bash
dotnet new maui
dotnet build
```
### Link to public reproduction project repository
_No response_
### Version with bug
8.0.40 SR5
### Is this a regression from previous behavior?
Not sure, did not test other versions
### Last version that worked well
Unknown/Other
### Affected platforms
Android
### Affected platform versions
_No response_
### Did you find any workaround?
This behavior is not necessarily a problem. However, it might indicate an underlying problem that does cause symptoms.
### Relevant log output
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.