Closed ckrutsinger closed 4 months ago
More info:
Sometimes I try to clean I get:
Clean started at 4:21 PM...
1>Error: Cancelled
========== Clean: 0 succeeded, 1 failed, 0 skipped ==========
========== Clean completed at 4:21 PM and took 00.178 seconds ==========
Verification of Android environment is running. Please try again in a moment.
The build was cancelled
I then wait a bit and try clean again and clean will succeed.
Then I get this message when I attempt to run on local android device:
Build started at 4:15 PM...
NuGet package restore failed. Please see Error List window for detailed warnings and errors.
Error occurred while restoring NuGet packages: The operation failed as details for project ... could not be loaded.
If I then cancel build and use Task Manager to kill 7-zip, run button begins to work.
Seems like C:\Users\chuck\AppData\Local\XamarinBuildDownloadCache\GAppM-10.24.0.tgz is getting unpacked by 7-zip and gets stuck.
The repro project seems to be missing.
Visual Studio has all sorts of problems building, deploying, and debugging iOS.NET apps with complex XCFramework dependencies due to limited support for long file paths.
You may be running into some of that. In addition, XamarinBuildDownload is a somewhat tenuous part of the build chain that's also more likely to break when VS / Windows is paired to a mac.
Try clearing your local .nuget cache(s), your local XamarinBuildDownload cache, enable long file path support if you haven't already, reboot your system, and then finally try to build your project from the CLI (leave VS closed!).
One other thing, it looks like you have Windows set as a build target. This plugin doesn't support that at all.
@AdamEssenmacher Thanks for getting back to me.
More data points:
This is really affecting us, so any other help you can offer would be awesome.
GAppM is an iOS dependency. Your build is getting stuck downloading an iOS dependency while you're not pairing to mac? Maybe try pairing to mac?
@AdamEssenmacher I can only think that GAppM is downloading because of dotnet restore activity.
Not exactly. It downloads during the build, not restore.
But... connecting to mac is required to build for iOS, right? And you're not connected?
@AdamEssenmacher I am not building for mac on the windows machine. I hit the run button to run on locally attached android device and 7-zip gets hung up.
MAUI is going to build everything regardless of your run target.
Try removing your mac/iOS target frameworks if you only want to build for Android.
@AdamEssenmacher It won't be practical for us to add/remove targets while developing. That will end up getting something checked into repo that won't build for other platform. This is a corporate project for both platforms and with many developers. All of us are struggling to get build to run. I need a way to have the project buildable/debuggable for all.
@AdamEssenmacher We have downgraded to 2.x versions of the plugin since we cannot deal with these build issues. Thank you for looking at it.
I'll continue this at: https://github.com/AdamEssenmacher/GoogleApisForiOSComponents/issues/4
VS 17.11.5 still broken when I add the AdamE IOS projects as well. I can get an azure pipeline to build for me, but forget about a build for debugging. Same exact spot the build stops Extracting GAppM-10.28.0.tgz
Build never completes after adding Plugin.Firebase 3.0 to dependencies.
Visual Studio Community 2022 v17.10.2 Plugin.Firebase 3.0
Sample project to reproduce: https://github.com/ckrutsinger/FirebasePluginBuild.git
This is a new MAUI project after only adding Plugin.Firebase 3.0 dependency using NuGet.
The following packages were added via Developer Powershell:
When building with VS2022, build will hang. Contents of output window:
Build never continues.
This is happening to our production app and causing major disruptions to our development activities. Hope someone can help.