mgierlasinski / MagicGradients

Draw breathtaking backgrounds in your Xamarin.Forms application. It's a kind of magic.
MIT License
369 stars 22 forks source link

Fix Namespace Schema Compilation Error #164

Closed bbenetskyy closed 3 years ago

bbenetskyy commented 3 years ago

Same as Described in This Article I was not able to compile and run the solution at the latest master branch.

These two lines - fix that problem for me

image

mgierlasinski commented 3 years ago

What if you reference MagicGradients from NuGet?

mgierlasinski commented 3 years ago

We are missing Init() in library to prevent linker from stripping types if we want to use custom namespace: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/custom-namespace-schemas#consuming-a-custom-namespace-schema

mgierlasinski commented 3 years ago

Please use tha same solution as described here: https://github.com/xamarin/XamarinCommunityToolkit/pull/357

bbenetskyy commented 3 years ago

Just Build or Clean/ReBuild

Rider Compilation Errors: image

Visual Studio Compilation Errors: image

Try to Run Playground on iOS

The Rider has only warnings. The application runs without any problems. Visual Studio has only warnings. The application runs without any problems.

Try to Run Playground on Android

Rider - Same Compilation Error. The application not deployed to Emulator.

Visual Studio has only warnings. The application runs without any problems.

Conclusion - no more changes are needed, we can merge it