TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
211 stars 49 forks source link

Problem importing Plugin.Firebase to .MAUI project #169

Closed MohammedAlawna closed 10 months ago

MohammedAlawna commented 1 year ago

Hi. Whenever I try to install the "Plugin.Firebase" to my project (.NET MAUI) it throws an error to my console: (The error is shown in the attached image below this thread/issue) Note that I've enabled "Long Paths" from policy settings, but still the issue persists. image

TobiasBuchholz commented 1 year ago

Hi @MohammedAlawna, did you try to add the package via dotnet add package Plugin.Firebase? See https://github.com/TobiasBuchholz/Plugin.Firebase/issues/65 for more information.

JamesSonic commented 1 year ago

I've added my package via the CLI but I get the same error when i try to publish the android app. Is there a work around for that issue?

BFuchshofer commented 1 year ago

What worked for me was to not use the nuget restore of Visual Studio 22. I used a local nuget.exe inside my project. Download the file from nuget.com and copy next to your solution file. Then use the command "nuget.exe restore". In my case, Plugin.Firebase was restored.

MasonWray commented 1 year ago

@MohammedAlawna Try using Nuget.config. This worked for me, but be warned, I don't think this package supports .NET 7 yet. I can't get it to deploy, at least.

TobiasBuchholz commented 10 months ago

Since I haven't heard from you in more than 30 days, I hope this issue is no longer affecting you. If it is, please reopen this issue and provide the more information so that I can look into it further. Thank you!