-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Problem with MAX_PATH #15042
Comments
@rolfbjarne @dalexsoto thoughts? |
This is for XMA, CC @emaf |
Need to find fix on maximum path length for Windows 11 |
I do not think it is max path as this path is 220 and is an invalid path entirely:
Take not of the There is probably a bug in XMA or in the nuget targets file. |
I don't think this is a problem since the test project runs just fine.
|
I did some research and decided that |
@scriptBoris @Kebechet Could you share a build binary log with us? You can get one using the Project System Tools extension for Visual Studio. You can find more information about thow to use it here. With this log we should be able to find out why the file was not copied over to the Mac. Some comments about the path:
|
Take it This problem should be mark as MOST IMPORTANT. Because google firebase now used on multiple batle projects 🥲 |
@emaf is there a solution to the problem? |
@scriptBoris Thanks for providing the logs! We've already identified the root cause of the problem and we are currently working on a fix. cc @rolfbjarne |
Looks like this is being tracked in xamarin/xamarin-macios#18308. |
Can you try removing the SessionId property in your local file So remove this line: So that the task looks like this: <GetFileSystemEntries
DirectoryPath="@(_BindingPackagesFromReferencedAssembliesDirectoriesExists)"
Pattern="*"
Recursive="true"
IncludeDirectories="false"
>
<Output TaskParameter="Entries" ItemName="_BindingPackagesFromReferencedAssemblies" />
</GetFileSystemEntries> Note that you might have to restart Visual Studio for the change to take effect. |
… to the Mac. (#18324) Make the GetFileSystemEntries task capable of copying files to the Mac, and enable this new behavior when inspecting references for binding resources. Otherwise the task might not find anything, if the files aren't copied to the Mac (this happens if the files originate from NuGets instead of referenced projects). Ref: * https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1808448 (third attempt) * #18308 * dotnet/maui#15042
Closing as duplicate of xamarin/xamarin-macios#18308. |
Description
I am on Windows and I build my iOS application through connected Mac M1 mini.
I have spotted an error on package MauiMTAdmob that provides Google ads. It uses bindings around native libraries and the xcframework folder structure is quite deep.
The package name is xamarin.firebase.ios.core
v8.10.0.3
When I want to build my app with this package and run in in iOS simulator it ends with error. Basically the content of this package cant be moved to the remote MAC. The cause is probably the long path but even after setting up
in my registries, nothing changed.
I have googled possible workarounds and all of them just tries to shorten the final path. Either by specifying nuget folder to:
C:\nuget\
by specifying environment variablesNUGET_PACKAGES
andNUGET_PATH
, moving whole project closer to the root directory or other similar things.Issues related to this problem:
Steps to Reproduce
Run on Windows and have connected remote MAC
Link to public reproduction project repository
https://github.com/Kebechet/MauiPathProblem/commits/main
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
I was not able test on other platforms
Affected platform versions
Windows 11 Pro - 10.0.22621
Did you find any workaround?
No, none of mentioned workarounds worked for me
Relevant log output
The text was updated successfully, but these errors were encountered: