Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

error MSB4057: The target "_GetRestoreSettingsPerFramework" does not exist in the project #42

Open
borrrden opened this issue Sep 1, 2022 · 1 comment

Comments

@borrrden
Copy link

borrrden commented Sep 1, 2022

This is a continuation of #33 but this happens on both iOS and Android projects when using dotnet build. It doesn't happen when using msbuild.

Here is a zipped binary log from building one such project. You can see the csproj as well.

@dsidirop
Copy link

dsidirop commented Oct 22, 2023

This started happening on one of my windows machines too. On macos everything works fine with the exact same project. It's only windows that seems to suffer from this. If I remove 'monoandroid12.0' from the target-frameworks everything works fine.

  • I updated+ repaired my VS2022 community edition -> No dice
  • Installed the latest Android SDK -> No dice

I tested the same project structure with <Project Sdk="MSBuild.Sdk.Extras/3.0.44"> and msbuild (not dotnet) on the same windows machine and the build works just fine - so I don't think there's something missing as far as the android aspect is concerned.

I've attached the binlog too.

PS: I installed VS2019 build tools and everything and the error persists even if I force Xamarin.Legacy.Sdk to use the VS2019 build tools.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants