I get the error Could not find a part of the path C:\... when I install a NuGet package

Kim Strasser 1,321 Reputation points
2025-01-11T13:05:12.83+00:00

I get this error when I try to install the NuGet package Xamarin.Firebase.iOS.Crashlytics version 8.10.0.3 in Visual Studio on Windows:

Could not find a part of the path 'C:\Users\MyName.nuget\packages\xamarin.firebase.ios.installations\8.10.0.3\lib\xamarinios10\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\FirebaseInstallations.framework\Headers\FIRInstallationsAuthTokenResult.h'.

How can I solve this problem?

Developer technologies | .NET | .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2025-01-13T05:43:50.93+00:00

    Hello,

    This is a known issue and has been reported to VS team, please refer to jfversluis's comment and follow the progress at Allow building, running, and debugging a .NET application in a long path - Developer Community.

    (I noticed that you added both Xamarin and MAUI tags, and I removed the Xamarin tag since Xamarin support has been ended and your project is target on .NET8. Also, Xamarin.Firebase.iOS.Crashlytics NuGet only targets on .NET6 and has ended their support, you could try to find other third-party packages).

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.