Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mphill opened this issue Sep 18, 2022 · 0 comments
Assignees
Labels
unrelated Nothing to do with this Plugin

Comments

@mphill
Copy link
Contributor

mphill commented Sep 18, 2022

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:

novotnyllc/MSBuildSdkExtras#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 mphill added the bug Something isn't working label Sep 18, 2022
@thudugala thudugala added the iOS iOS only issue label Nov 7, 2022
@thudugala thudugala added unrelated Nothing to do with this Plugin and removed bug Something isn't working iOS iOS only issue labels Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unrelated Nothing to do with this Plugin
Projects
None yet
Development

No branches or pull requests

2 participants