question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microcharts fails during build in VS2017

See original GitHub issue

I 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, ICollection1 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:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
Willianrncommented, Jan 23, 2018

Thank you @meliksahk , Microcharts install solved the problem

1reaction
godrosecommented, Jan 22, 2018

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:

@godrose https://github.com/godrose Yes I installed

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aloisdeniel/Microcharts/issues/63#issuecomment-359385040, or mute the thread https://github.com/notifications/unsubscribe-auth/AHbkI7KhGb77vDhUszMQjhPcmqxz-WJUks5tNGTUgaJpZM4RmUWi .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microcharts fails during build in VS2017 · Issue #63
I just installed from nuget and build it. This is the error: 2> C:\Program Files (x86)\Microsoft Visual ...
Read more >
microcharts - missing method exception
I am trying to add a simple chart to my Xamarin Cross platform application but get below error when running in android emulator...
Read more >
Recent Threads - Xamarin Community Forums
I'm trying to achieve the chart similar to the attached screenshot and I'm almost there. The only problem is, how can I put...
Read more >
Change Xamarin.Forms .Net Framework target
I have a Xamarin Forms project and the majority of times that I want to install a nuget package I have an error...
Read more >
How to fix VS2017 missing XAML tools build error - John Louros
Taking a closer look at the error: The "Microsoft.Build.Tasks.Xaml.PartialClassGenerationTask" task could not be loaded from the assembly ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found