dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

[MAUI] An error NETSDK1082 will happen when opening the existing Projects recipeSearch & ManualMauiTests #26054

Open ninachen03 opened 13 hours ago

ninachen03 commented 13 hours ago

Description

NETSDK1082:There was no runtime pack for Microsoft.NETCore.App available for the specified RuntimeIdentifier 'iossimulator-x64'. at C:\Program Files\dotnet\sdk\9.0.200-preview.0.24529.19\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targetsfile: NETSDK1082There was no runtime pack for Microsoft.NETCore.App available for the specified RuntimeIdentifier 'maccatalyst-x64'. af file C:\Program Files\dotnet\sdk\9.0.200-preview.0.24529.19\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets

Steps to Reproduce

1.Download the project https://github.com/rachelkang/recipeSearch or https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests and open it in Visual Studio. 2.Observed the Error List. Image

Version with bug

· VS Version: 17.13.0 Preview 2.0 [35520.232.main] · Microsoft.Maui.Controls: 9.0.0 · .NET SDK: 9.0.200-preview.0.24529.19 · Sdk-manifest: 9.0.100 · microsoft.net.sdk.android: 35.0.7 · microsoft.net.sdk.maui: 9.0.0 · microsoft.net.sdk.ios:18.0.9617 · microsoft.net.sdk.Maccatalyst:18.0.9617 microsoft.net.workload.mono.toolchain.current: 9.0.0

Link to public reproduction project repository

https://github.com/rachelkang/recipeSearch

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

· VS Version: 17.13.0 Preview 2.0 [35519.241.main] · Microsoft.Maui.Controls: 9.0.0 · .NET SDK: 9.0.200-preview.0.24529.19 · Sdk-manifest: 8.0.100 & 9.0.100 · microsoft.net.sdk.android: 35.0.7 · microsoft.net.sdk.maui: 9.0.0

It seems to have nothing to do with Maui control. I haven't investigated the specific cause of the impact, but I can give you the previous working version.

Affected platforms

iOS, Android, Windows, macOS

similar-issues-ai[bot] commented 13 hours ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.