TobiasBuchholz / Plugin.Firebase

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

I cannot add the NuGet package because the paths are too long. #341

Open MsShiftDev opened 1 week ago

MsShiftDev commented 1 week ago

Hello,

I am developing a mobile application based on .NET 8.0 and the last missing feature is the support for Push Notifications. I wanted to use this library, but when I click on "Install" in the Visual Studio's NuGet Package Manager, I get the following error trace:

Restoring packages for C:\Projects\Git\[APP NAME]\[APP NAME]\[APP NAME].csproj... GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.core/index.json GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.installations/index.json OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.installations/index.json 60ms OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.core/index.json 62ms GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.installations/10.24.0/adame.firebase.ios.installations.10.24.0.nupkg GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.core/10.24.0/adame.firebase.ios.core.10.24.0.nupkg OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.installations/10.24.0/adame.firebase.ios.installations.10.24.0.nupkg 17ms OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.core/10.24.0/adame.firebase.ios.core.10.24.0.nupkg 33ms GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.core/10.24.0.1/adame.firebase.ios.core.10.24.0.1.nupkg OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.core/10.24.0.1/adame.firebase.ios.core.10.24.0.1.nupkg 7ms GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.dynamiclinks/index.json OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.dynamiclinks/index.json 41ms GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.dynamiclinks/10.24.0-alpha1/adame.firebase.ios.dynamiclinks.10.24.0-alpha1.nupkg OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.dynamiclinks/10.24.0-alpha1/adame.firebase.ios.dynamiclinks.10.24.0-alpha1.nupkg 19ms GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.remoteconfig/index.json OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.remoteconfig/index.json 38ms GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.remoteconfig/10.24.0-alpha1/adame.firebase.ios.remoteconfig.10.24.0-alpha1.nupkg OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.remoteconfig/10.24.0-alpha1/adame.firebase.ios.remoteconfig.10.24.0-alpha1.nupkg 11ms GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.abtesting/index.json OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.abtesting/index.json 37ms GET https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.abtesting/10.24.0-alpha1/adame.firebase.ios.abtesting.10.24.0-alpha1.nupkg OK https://api.nuget.org/v3-flatcontainer/adame.firebase.ios.abtesting/10.24.0-alpha1/adame.firebase.ios.abtesting.10.24.0-alpha1.nupkg 7ms System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) at NuGet.Packaging.PackageFileExtractor.ExtractPackageFile(String source, String target, Stream stream) at NuGet.Packaging.PackageArchiveReader.CopyFiles(String destination, IEnumerable1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken token) at NuGet.Packaging.PackageReaderBase.CopyFilesAsync(String destination, IEnumerable1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken cancellationToken) at NuGet.Packaging.PackageExtractor.<>cDisplayClass5_0.<b0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.Common.ConcurrencyUtilities.d51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at NuGet.Common.ConcurrencyUtilities.<ExecuteWithFileLockedAsync>d__51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.Packaging.PackageExtractor.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.Commands.ProjectRestoreCommand.d16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at NuGet.Commands.ProjectRestoreCommand.<>cDisplayClass15_1.<b4>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at NuGet.Commands.ProjectRestoreCommand.d15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.Commands.ProjectRestoreCommand.d9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.Commands.RestoreCommand.d89.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.Commands.RestoreCommand.d71.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.Commands.RestoreRunner.d7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.Commands.RestoreRunner.d11.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at NuGet.Commands.RestoreRunner.d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.PackageManagement.DependencyGraphRestoreUtility.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.PackageManagement.NuGetPackageManager.d89.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.PackageManagement.NuGetPackageManager.d75.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.<>cDisplayClass22_0.<b0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.d__33`1.MoveNext() Time Elapsed: 00:00:01.2954152 ========== Finished ==========

I did investigate this error and I found many people having the exact same or similar issue, but I did not find a solution to solve this. Any tips are very welcomed!

AdamEssenmacher commented 1 week ago

Please refer to the documentation in the project readme