Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 15419 [details]
err msg in x.studio
Description of Problem:
I can install v1.3.7 of Band SDK w/o issue. However when I go to update to v1.3.8, I'm met with an error which reports itself as shown in the attachment
Steps to reproduce the problem:
1. Add Microsoft Band SDK v1.3.8 to a Xamarin.Android project
Success as in the v1.3.7 version of the package
How often does this happen?
The error looks like the Windows PathTooLongException so I suspect the only workaround would be to move to a shorter path for your project.
v1.3.8 of the Microsoft Band SDK does not seem to be available from the component store. Where are you getting it from?
Microsoft Band SDK v1.3.8 is now on the store. The sample solution has very long paths. Adding some logging I see the following directory which is over 260 characters:
This results in the error in the Components.log:
INFO: Failed to create directory: 'C:\Projects\weg23wef\Components\microsoft-band-sdk-1.3.8\samples\Microsoft.Band.Portable.Sample\Microsoft.Band.Portable.Sample.Phone\AppPackages\Microsoft.Band.Portable.Sample.Phone_22.214.171.124_AnyCPU_Test\Microsoft.Band.Portable.Sample.Phone_126.96.36.199_AnyCPU.appxsym'
[2016-04-10 13:03:33.8] ERROR: Component 'microsoft-band-sdk' entered state 'DownloadError' (was: Unpacked) [[ 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.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetDirectoryName(String path)
at Xamarin.Components.Ide.ComponentSolutionCacheEntry.UnpackZipWithProgress(String zipFile, String ignoreRoot, String extractTo, Action`1 progress) in md-addins\Xamarin.Ide\Xamarin.Components.Ide\Components\ComponentSolutionCacheEntry.cs:line 142
at Xamarin.Components.Ide.ComponentSolutionCacheEntry.UnpackComponentThread(Object state) in md-addins\Xamarin.Ide\Xamarin.Components.Ide\Components\ComponentSolutionCacheEntry.cs:line 87 ]]
This also affects Visual Studio.
So possible solutions:
1) Reduce paths used in the Microsoft Band SDK.
2) Use Windows specific API to handle the long paths. (Note that 7zip seems to be able extract the component to a directory longer than the one that is failing).
3) Allow the extraction to continue even though parts of it fail. Still report an error to the user but have it non-fatal.
I have released an update to this component v188.8.131.52 which should fix this issue. Please re-open if it persists.
Please note, v184.108.40.206 is awaiting review by the component store team.