thomasgalliker / Plugin.FirebasePushNotifications

Receive and handle firebase push notifications in .NET MAUI apps
31 stars 3 forks source link

[Bug] It does not install on Visual Studio for Windows #31

Open mixernet opened 3 weeks ago

mixernet commented 3 weeks ago

Description

Install-Package : Impossibile trovare una parte del percorso 'C:\Users\webma.nuget\packages\xamarin.firebase.ios.installations\8.10.0.3\lib\net6.0-ios15.4\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\Fir ebaseInstallations.framework\Headers\FirebaseInstallations-umbrella.h'.

Steps to Reproduce

Expected Behavior

Actual Behavior

Basic Information

Screenshots

Reproduction Link

thomasgalliker commented 3 weeks ago

I use VS 2022 on Windows and it works. If you give more information than just an URL I can help.

poochie89 commented 3 weeks ago

I get the same error message when installing the nuget package, any more details i can give? am using VS 2022 on Windows and net 8.0

thomasgalliker commented 3 weeks ago

Strange. What version of Windows and VS 2022 do you use? I use Windows 10 and VS 2022 v17.10 (the latest as by the very moment).

thomasgalliker commented 3 weeks ago

Can thos be related to Windows 11 somehow?

MaximeGammaitoni commented 3 weeks ago

I am certain that the combination of MAUI + VS + Windows 11 is causing this problem. The error is due to the package having a path that is too long during installation AND because VS ignores the LONGPATH registry change for no apparent reason with Windows 11.

thomasgalliker commented 3 weeks ago

@MaximeGammaitoni thanks for this hints! So, can you @mixernet try to checkout your solution in a very short path, e.g. In c:\src and check if the nuget is installable then?

mixernet commented 3 weeks ago

I tried to install the package in the C:\NuGet directory but same problem. I can't install it.

mixernet commented 3 weeks ago

I also tried to install the package on another PC with VS2022 + Win10 but same problem.

MaximeGammaitoni commented 3 weeks ago

@mixernet Even if you are on Windows 10, you need to change the Windows long path registry setting. Have you done that as well?

mixernet commented 3 weeks ago

@MaximeGammaitoni Yes, also changed in Windows 10 but same problem.

MaximeGammaitoni commented 3 weeks ago

@mixernet I just tested the Plugin.Firebase package on Windows 10 with the long path parameter set to 1: it doesn't work with version 3.0.0 of Plugin.Firebase, but it works with version 2.0.14. Can you try on your side?

mixernet commented 3 weeks ago

@MaximeGammaitoni I also tried to install version 2.0.14 on Windows 10 but the problem is still the same.

thomasgalliker commented 2 weeks ago

Did anyone try a solution proposed on stackoverflow?

mixernet commented 1 week ago

Nothing

thomasgalliker commented 1 week ago

If anyone has news regarding this issue, I can adjust my code. Since I have no Windows 11 installed, I cannot reproduce it. I reopen this issue if we hear news here.

CyberAustin commented 4 days ago

Yeah... this is happening to me as well. Win11 + VS 2022. I have the long file names enabled in the registry, but no joy.

CyberAustin commented 4 days ago

@thomasgalliker Can you reopen this and I will help you troubleshoot? Or can you test it with a Windows 11 VM?

CyberAustin commented 4 days ago

Okay, a psuedo-fix for anyone on Win11 like me: https://github.com/xamarin/GoogleApisForiOSComponents/issues/555#issuecomment-1145943195

I changed my NuGet folder to C:\NG to make sure it was short enough.

thomasgalliker commented 20 hours ago

Did anyone read this: https://github.com/AdamEssenmacher/GoogleApisForiOSComponents?tab=readme-ov-file#long-path-issue-workarounds

CyberAustin commented 20 hours ago

Did anyone read this: https://github.com/AdamEssenmacher/GoogleApisForiOSComponents?tab=readme-ov-file#long-path-issue-workarounds

Yeah, that's fine on Windows 10, but no joy on 11. For some weird reason.

biagio983 commented 6 hours ago

I confirm the problem and also confirm the workaround to set as nuget default path on c:\NG works in my case

CyberAustin commented 6 hours ago

Odd. I did that and it didn't work for me (Windows 11).

On Mon, Jul 1, 2024, 11:44 biagio983 @.***> wrote:

I confirm the problem and also confirm the workaround to set as nuget default path on c:\NG works in my case

— Reply to this email directly, view it on GitHub https://github.com/thomasgalliker/Plugin.FirebasePushNotifications/issues/31#issuecomment-2199699444, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVGRKQQ7E25MDWMBTJQEQYTZKEQGBAVCNFSM6AAAAABIYACC4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJZGY4TSNBUGQ . You are receiving this because you commented.Message ID: <thomasgalliker/Plugin.FirebasePushNotifications/issues/31/2199699444@ github.com>

biagio983 commented 6 hours ago

Odd. I did that and it didn't work for me (Windows 11). On Mon, Jul 1, 2024, 11:44 biagio983 @.***> wrote: I confirm the problem and also confirm the workaround to set as nuget default path on c:\NG works in my case — Reply to this email directly, view it on GitHub <#31 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVGRKQQ7E25MDWMBTJQEQYTZKEQGBAVCNFSM6AAAAABIYACC4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJZGY4TSNBUGQ . You are receiving this because you commented.Message ID: <thomasgalliker/Plugin.FirebasePushNotifications/issues/31/2199699444@ github.com>

It was not odd... in my case works.. and I'm also on win11