loodakrawa / SpriterDotNet

A pure C# Spriter implementation
zlib License
220 stars 75 forks source link

Adding SpriterDotNet to an Android project #102

Open Wompuz opened 5 years ago

Wompuz commented 5 years ago

When adding the SpriterDotNet.MonoGame NuGet package to an Android project I get the following error:

Could not install package 'Microsoft.NETCore.Jit 1.0.2'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v8.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Is it possible to update the NuGet package to work with these kinds of projects?

devedse commented 5 years ago

I also verified this. What I also did was try to include the NuGet package references in the SpriterDotNet.Example.MonoGame.Android project which results in the same error.

The reason this works in the Spriter Example projects is because they are added through a project reference. That way the .Jit project is never included as it is not actually being used.

devedse commented 5 years ago

Created a fix for this: https://github.com/loodakrawa/SpriterDotNet/pull/103

devedse commented 5 years ago

In the meanwhile I created some NuGet packages for this to solve it while this is not merged:

image

Once this is merged I'll deprecate those packages again.

loodakrawa commented 5 years ago

Hi, sorry for the very slow reply - I've been very busy lately.

Thanks for reporting and fixing this. I'll merge your PR along with some other stuff hopefully soon and publish a new release to NuGet.

devedse commented 5 years ago

Thanks :smile: