Plugin.LocalNotification icon indicating copy to clipboard operation
Plugin.LocalNotification copied to clipboard

Can't build project on macOS with Visual Studio: MSBuild.Sdk.Extras cannot build the TargetFrameworks Xamarin.iOS and net6.0-ios together

Open mphill opened this issue 2 years ago • 0 comments

Describe the bug We are unable to build the project current if using macOS with Visual Studio - this is result of targeting MAUI and Xamarin.

You will get this error:

If you are building projects that require targets from full MSBuild or MSBuildFrameworkToolsPath, you need to use desktop msbuild ('msbuild.exe') instead of 'dotnet build' or 'dotnet msbuild".

This is NOT an issue with this Plugin.LocalNotification, it's related to:

https://github.com/novotnyllc/MSBuildSdkExtras/issues/291

To build the project if you need to, you can comment out the .net 6 targets:

image

To Reproduce Clone the project on a Mac and run the sample project

Expected behavior The project runs

Screenshots If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):

  • OS: macOS - Visual Studio

Smartphone (please complete the following information): n/a

mphill avatar Sep 18 '22 16:09 mphill