-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 compile on vs for Mac with .net 8 due to missing supporting packages #19555
Comments
Visual Studio for Mac does not officially support .NET 8 as mentioned here. You will probably want to use VS Code with the .NET MAUI extension or build on Windows. If you try that, please let us know if it works. If not, please add the contents of your csproj file at the very least, ideally the full project so we can have a look. |
Hi @michaelonz. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Thanks @jfversluis - does .net maui 8.0 actually work for IOS in vscode? - I vaguely recall looking at that and reading it wouldn't work also? |
Hi @michaelonz. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
I'm a little confused. I'm using VS Mac for compiling and running .NET8 MAUI iOS Apps (and currently using it for 8.0.3 release). It's not terribly fast (even on a Mac Studio) but it does actually work and I don't get any missing package issues. |
I have loaded vscode and installed the maui add on etc. But when I compile I am getting the same error as I reported in VS MAC (full visual studio) - the issue is with a subproject I am using. NOTE: Username and project name redacted dotnet build /Users/REDACTED/REDACTED/AudioLibrary/Plugin.Maui.AudioWithSetData/src/Plugin.Maui.AudioWithSetData.sln /target:Plugin_Maui_AudioWithSetData:rebuild /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary Below is the project file that is causing the compile errors - it should look familiar to you @jfversluis :) true true enable enable
At this stage I can't compile in either full vs (I understand that's not longer supported with v8) but I also have the same compile issue on vs code. |
Hi Guys - I tried something else.... I created a brand new maui project from inside vscode and that has exactly the same compile issue as what I detailed above - so I don't think it's project specific ...... totally at a loss as to what it might be at this stage but I basically can't even run a hello world at this stage on IOS either. |
Just thought I would also add that this project compiles fine in visual studio on windows and runs fine on android - so I suspect it’s somehow environment related but I don’t even reference the things it’s complaining about - after any tips on what |
Hi guys - I managed to get this to work (in full visual studio) - it turned out I had iOS 17.2 selected in my project but my test phone was still on 14.6 - I also had the wrong frameworks in the project file - once they all lined up it started working again. You can close this issue ( although adding a good compile failure message might save others some time ) |
Description
When I compile on VS for MAC I get the following errors in the output before it aborts the build.
NOTE: I have tried to install all of these nugets - none of them will install they all log the same issue as above.
I also can't update other nugets because of issue above...it errors the same as above when I try and add them.
Steps to Reproduce
I suspect there is some sort of reference or Nuget missing but I don't know what is triggering the compile issue.
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.0-rc.1.9171
Affected platforms
macOS
Affected platform versions
IOS 16.6
Did you find any workaround?
NO I currently can't compile for Mac
Relevant log output
The text was updated successfully, but these errors were encountered: