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 for Bug 60854 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
Created attachment 25828 [details]
line where the error is thrown in MonoPackageManager
I have already referenced #28977 and #29370 where they both say to delete the obj and bin directories.
If I build from the command line, everything is fine, but if I build via Visual Studio, I get this error.
I've cleaned the solution, deleted /obj and /bin, restarted VS, restarted my machine, uninstalled and reinstalled Xamarin, and yet nothing yet has allowed me to build my Android app via Visual Studio.
I'm trying to think back to when this started and the only thing I can think of is that this is the first time trying to build Android since updating to the latest toolset for Xamarin.
my command line build looks something like this
msbuild.exe C:\Dev\SelfServe\src\XXX\XXX.csproj /target:clean,PackageForAndroid /verbosity:minimal /logger:FileLogger,Microsoft.Build.Engine;logfile=C:\Dev\SelfServe\build-artifacts\logs\MSBuild\msbuild.txt /property:OutDir=C:\Dev\SelfServe\build-artifacts\output\Droid\TestApp\ /property:VisualStudioVersion=14.0 /property:ToolsVersion=4.6 /property:ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch=False /maxcpucount:1 /p:Configuration=Ad-Hoc
Microsoft Visual Studio Enterprise 2017
Microsoft .NET Framework
Installed Version: Enterprise
Visual Basic 2017 00369-60000-00001-AA734
Microsoft Visual Basic 2017
Visual C# 2017 00369-60000-00001-AA734
Microsoft Visual C# 2017
Visual F# 4.1 00369-60000-00001-AA734
Microsoft Visual F# 4.1
ASP.NET and Web Tools 2017 15.0.30925.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 1.0
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.50921.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.30915.0
Azure App Service Tools v3.0.0
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
File Nesting 2.6.67
Automatically nest files based on file name and enables developers to nest and unnest any file manually
JetBrains ReSharper Ultimate 2017.1.3 Build 108.0.20170613.154143
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.
Merq 1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50719.1
Microsoft Continuous Delivery Tools for Visual Studio 0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio 4.7.4-pre (c2d89eb)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 4.4.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Project System Tools 1.0
Tools for working with C#, VisualBasic, and F# projects.
SQL Server Data Tools 15.1.61707.200
Microsoft SQL Server Data Tools
TypeScript tools for Visual Studio
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for Universal Windows Apps 15.0.27004.2008
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
Package with IoT components for Visual Studio
Mac Extension for Visual Studio
VSPackage1 Extension 1.0
VSPackage1 Visual Studio Extension Detailed Info
Xamarin 220.127.116.11 (34c1b6c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK 18.104.22.168 (HEAD/c2a33d8ea)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 22.214.171.124 (51128b8)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Thanks for reporting a bug.
Can you please upload a diagnostic build output log?
Secondly, if there's anyway we can get our hands on a reproduction project, we will be able to investigate much further with a possibility of reproducing this locally. If this is private, feel free to send this to my email or we can mark this bug private.
From a first glance, the definitions seem to be fine:
appDirs is a type String. However I would guess that the issue is in the native call:
specifically this code:
sent private details via email
I am also seeing this issue on our build server. Would you like our log? (I can email)