Skip to content
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

Microcharts.forms failed to load assembly #42

Closed
merokoshiro opened this issue Nov 28, 2017 · 10 comments
Closed

Microcharts.forms failed to load assembly #42

merokoshiro opened this issue Nov 28, 2017 · 10 comments
Labels

Comments

@merokoshiro
Copy link

merokoshiro commented Nov 28, 2017

Hello,

I installed Microcharts.Forms to my project and tried to add in a content page "<microcharts:ChartView x:Name="chartView" />" as in the example, but when I run on iOS I get the following error: "Failed to resolve assembly:'Microcharts.Forms, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null".

Version 0.7.1 for Microcharts.Forms and I am using Xamarin Live Player.

Thanks

@gribnikpayk
Copy link

Hi
I have same problem...

@gribnikpayk
Copy link

i have solved this problem.
i added "var ignore_chartView = new Microcharts.Forms.ChartView();" in FinishedLaunching method (AppDelegate.cs)

@merokoshiro
Copy link
Author

Hello @gribnikpayk ,
I tried adding that line, but it still does not work for me. It does not even enter this method.

`[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{

        var ignore_chartView = new Microcharts.Forms.ChartView();
        global::Xamarin.Forms.Forms.Init();
		LoadApplication(new App());
        return base.FinishedLaunching(app, options);
	}
}`

@navkar
Copy link

navkar commented Nov 30, 2017

Did u try adding that line after

global::Xamarin.Forms.Forms.Init();

@merokoshiro
Copy link
Author

Yes, I did. I still have the same problem. It does not even enter in that method

@andreatosato
Copy link

I have installed microcharts nuget package to iOS project. I have also installed microcharts.forms to .NET Standard project.

@chasmeier
Copy link

I'm having the same issue on VS Mac 7.3.2 But it works as demonstrated on Windows VS 15.5.0

In comparing the 2 environments, I notice that Windows is using targeted Framework .Net Standard 2.0 and OSX is using .Net Standard 1.5. I've been struggling getting the OSX VS project to work, but Windows works as described. Does anyone more familiar with the project/environments have a workaround or advise? I've tried the advise recommended above bit it does not change the outcome

Generally frustrating now that I have dueling VS environments on and such different behaviors/outcomes on each... Thanks in advance for any advise

@aloisdeniel
Copy link
Collaborator

I would suggest to switch to preview channel if you didn't try yet. A new release is coming by the beginning of 2018.

Do you have the same issues with the samples ?

@0rel1
Copy link

0rel1 commented Jan 11, 2019

Hi,

Presently, I have installed the Microcharts.Forms 0.8.3-pre package in my Xamarin Project.

This solution is creacted with the option "Code Shared Strategy": "Shared .Net" (not PCL).

Calls of the microchart objets are doing in the xaml code of my shared code project.

My solution builds correctly. But, when I try to deploy on my device, I have this error: "Can not resolve reference: Microcharts.Forms, referenced by MyProject. Please add a NuGet package or assembly reference for Microcharts.Forms, or remove the reference to MyProject."

Could you help, please?

Thanks,
A

@Nixon-Joseph
Copy link
Contributor

Hello! I'm attempting to clean up some of these older issues that haven't had any movement for a few months, if here is still and issue or enhancement to be made, please create a new issue, and feel free to reference relevant parts of this issue if necessary.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants