Microcharts fails during build in VS2017
See original GitHub issueI just installed from nuget and build it. This is the error:
2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1500,2): error : Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Microcharts, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? 2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1500,2): error : File name: 'Microcharts.dll' 2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1500,2): error : at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) in /Users/builder/data/lanes/5749/ef47226b/source/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs:line 229 2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1500,2): error : at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(DirectoryAssemblyResolver resolver, ICollection
1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1500,2): error : at Xamarin.Android.Tasks.ResolveAssemblies.Execute(DirectoryAssemblyResolver resolver)`
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Thank you @meliksahk , Microcharts install solved the problem
I usually get this kind of error when there’s a package that’s referenced by the shared project and not referenced by Android project. Make sure both core and Xamarin.Forms packages are installed in both projects. If they are you might be experiencing something else, most probably not related to this package
On 22 Jan 2018 12:37, “meliksahk” notifications@github.com wrote: