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

Better workaround for long path issue with XamarinBuildDownloadCache? #124

Open
devenv2 opened this issue Feb 5, 2025 · 1 comment
Open

Comments

@devenv2
Copy link

devenv2 commented Feb 5, 2025

🚀

Description:
Hi, I'm using Plugin.MauiMTAdmob in my .NET MAUI project. When building in Release mode, I encountered the following error:

Unpacking failed. Please download 'https://dl.google.com/firebase/ios/analytics/59128155f949f77d/GoogleAppMeasurement-8.9.1.tar.gz' and extract it to the 'C:\Users\user\AppData\Local\XamarinBuildDownloadCache\GAppM-8.9.1' directory and create an empty file called 'C:\Users\user\AppData\Local\XamarinBuildDownloadCache\GAppM-8.9.1.unpacked'.

After some research, I realized that Goolge enforces strict path length limitations, which causes issues with Xamarin.Firebase.iOS.Core.

Workaround I Found:

I shortened the NuGet package path by modifying nuget.config like this:

<configuration>
    <config>
        <add key="globalPackagesFolder" value="C:\np" />
    </config>
</configuration>

This fixed the issue, but I wonder if there is a better solution that doesn't require manually adjusting paths.

My Question:
Is there a way to configure XamarinBuildDownloadCache to use a shorter path (e.g., ) or another official workaround?C:\XBDCache

It feels strange that Google enforces such strict path limitations, and I'm curious if there's an alternative that doesn’t involve modifying environment variables or manually managing package locations.

Environment:
.NET MAUI
Visual Studio (last version)
Plugin.MauiMTAdmob (latest version)
Any guidance would be appreciated. Thanks! 🙌

@san-spar
Copy link

Thanks for suggesting the work-around solution !!

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

2 participants