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

Xaml only animations fail to load Xamanimation.dll #4

Open
blamejane opened this issue Sep 4, 2017 · 5 comments
Open

Xaml only animations fail to load Xamanimation.dll #4

blamejane opened this issue Sep 4, 2017 · 5 comments
Assignees

Comments

@blamejane
Copy link

After creating a new cross-platform project/solution and adding the Xamanimation reference (nuget) to the PCL, when deploying to iOS the application crashes with the following exception:

Xamarin.Forms.Xaml.XamlParseException: Position 8:14. Type xamanimation:FadeToAnimation not found in xmlns clr-namespace:Xamanimation;assembly=Xamanimation

If I add the following to the xaml code behind the application will load on iOS:

FadeBox.Animate(new FadeToAnimation());'

Using the Xamanimation Sample project you can test this same behavior by commenting out the code below IntializeComponent() in the AnimationsView.xaml.cs file. That is, comment out the AnimationExtensionButton click event handler code. By commenting out the code, the Xamanimation.dll will no longer load and the sample app will crash at startup.

@jsuarezruiz jsuarezruiz self-assigned this Sep 27, 2017
@JeromeGsq
Copy link

Hello,

I've got the same problem. I have to call my new animation in the xaml code behind one time, build & run it on simulator then remove the line in order to use it.
After that, my custom animation is working.

Hope it helps

@PostImpatica
Copy link

I got this on Android because I forgot to add the Xamanimation package to my project.

@tarcisiosouzabr
Copy link

Hey, @JeromeGsq @blamejane
I've got the same problem.
But i correct forcing the project load with this line :
var a = new Xamanimation.HeartAnimation();
on AppDelegate.cs before LoadApplication().

@jsuarezruiz
Copy link
Owner

Will include an option to avoid this issue. For now, just adding the reference to the .NET library and the platform projects must fix the problem.

@softlion
Copy link

Search for LinkerPlzInclude, disable linking, or use the Preserve attribute.

This is not an issue with this lib.

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

No branches or pull requests

6 participants