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

Not able to install in a .NET MAUI project #65

Closed
andreas-nesheim opened this issue Sep 8, 2022 · 3 comments
Closed

Not able to install in a .NET MAUI project #65

andreas-nesheim opened this issue Sep 8, 2022 · 3 comments

Comments

@andreas-nesheim
Copy link

I get the following error when I try to install the latest version (1.2.0) into a .NET MAUI project:

Could not find a part of the path 'C:\Users\andre.nuget\packages\xamarin.firebase.ios.installations\8.10.0.1\lib\net6.0-ios15.4\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_i386_x86_64-simulator\FirebaseInstallations.framework\Headers\FirebaseInstallations-umbrella.h'.

This can be reproduced by creating a blank .NET MAUI app in Visual Studio version 17.3.3.

@andreas-nesheim
Copy link
Author

andreas-nesheim commented Sep 8, 2022

I tested it on VS for Mac and it worked fine there. A friend of mine mentioned that this could be the MAX_PATH on Windows kicking in and suggested that I enabled Long Path support: https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-long-path

I tried this, but it still didn't seem to work. The article mentioned that the dotnet CLI already supports long paths, so I tried adding the package with the dotnet CLI using dotnet add package Plugin.Firebase. That did the trick. Just a heads up for others who might get the same error.

TL;DR: use dotnet add package Plugin.Firebase on Windows.

@TobiasBuchholz
Copy link
Owner

Cool, thanks a lot for the insight! 👍 I've updated the README with that hint and will close this issue.

@SteveSitekitcare
Copy link

I cant seem to get this to work in windows 11. I think it maybe due to this https://answers.microsoft.com/en-us/windows/forum/all/long-file-path-issues-in-windows-11-pro-with/0c440721-e35a-4b58-9f5a-645656768f9d

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

No branches or pull requests

3 participants