[DOTNET9] dotnet build causes error MSB4057: The target "_GetRestoreSettingsPerFramework" does not exist in the project. #18796
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
project/core-tools 🛠️
Categorizes an issue or PR as relevant to core and tools
UnoApp2.zip
Error Message
error MSB4057: The target "_GetRestoreSettingsPerFramework" does not exist in the project.
Issue Summary:
When
net9.0-browserwasm
is included in theTargetFrameworks
of the .csproj file, the following build commands fail:dotnet build UnoApp2.csproj -c:Release -f:net9.0-android -r:android-arm64
dotnet build UnoApp2.csproj -c Release -f net9.0-ios -r iossimulator-x64
Error Details:
Environment
.NET SDK Version: 9.0
VisualStudio 17.12.0
Windows 11
Expected behavior
The project should build successfully with .NET 9 using the specified commands, regardless of whether
net9.0-browserwasm
is included in theTargetFrameworks
.How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
Android, iOS
IDE
Visual Studio 2022, Visual Studio Code
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: