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 compile on Mac #19039

Closed
michaelonz opened this issue Nov 27, 2023 · 3 comments
Closed

Can't compile on Mac #19039

michaelonz opened this issue Nov 27, 2023 · 3 comments
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@michaelonz
Copy link

Description

I can compile for android on my windows pc but when I try and compile the same project for IOS on my Mac I get the following errors:

Unable to find package Microsoft.Extensions.DependencyInjection.Abstractions with version (>= 8.0.0)

  • Found 112 version(s) in nuget.org [ Nearest version: 8.0.0-rc.2.23479.6 ]
  • Found 0 version(s) in /usr/local/share/dotnet/library-packs
    Unable to find package Microsoft.Extensions.Options with version (>= 8.0.0)
  • Found 116 version(s) in nuget.org [ Nearest version: 8.0.0-rc.2.23479.6 ]
  • Found 0 version(s) in /usr/local/share/dotnet/library-packs
    Unable to find package Microsoft.Extensions.Configuration.Abstractions with version (>= 8.0.0)
  • Found 115 version(s) in nuget.org [ Nearest version: 8.0.0-rc.2.23479.6 ]
  • Found 0 version(s) in /usr/local/share/dotnet/library-packs
    Unable to find package Microsoft.Extensions.Primitives with version (>= 8.0.0)
  • Found 113 version(s) in nuget.org [ Nearest version: 8.0.0-rc.2.23479.6 ]
  • Found 0 version(s) in /usr/local/share/dotnet/library-packs

The weird part is I have the .net 8 general release installed so I don't know why it still thinks it is targeting rc2.

I have tried to do the workload updates etc etc but nothing seems to resolve this error - not really sure what these Microsoft.Extensions are even there for....

Steps to Reproduce

Simply build the project targeting IOS on MAC

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

Unknown/Other

Affected platforms

iOS

Affected platform versions

this worked in RC2 - doesn't work now (RC2 not in list above)

Did you find any workaround?

No - unable to work on maui IOS with this issue

Relevant log output

No response

@michaelonz michaelonz added the t/bug Something isn't working label Nov 27, 2023
@davidortinau
Copy link
Contributor

That's a NuGet package and nothing to do with the .NET workloads you have installed. Those packages seem to have net8.0 versions. I wonder if your csproj PackageRefeferences might be locked to a dif version than you expect.

https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection.Abstractions

The rc.2 mentions are about what it is resolving to, not what is being targeted. Can you share the contents of your csproj contents, and confirm your nuget.config being used to resolve the packages?

From CLI:

> dotnet nuget list source

If using Visual Studio, you should also look at the sources configured there.

@jsuarezruiz jsuarezruiz added the area-setup Installation, setup, requirements, maui-check, workloads, platform support label Nov 27, 2023
@jfversluis jfversluis added the s/needs-info Issue needs more info from the author label Nov 27, 2023
@ghost
Copy link

ghost commented Nov 27, 2023

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.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Dec 1, 2023
@ghost
Copy link

ghost commented Dec 1, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Dec 4, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2024
@ghost ghost removed the s/no-recent-activity Issue has had no recent activity label Jan 4, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants