• Runtimes
  • Cannot compile C# runtime

Hi everyone,

I am trying currently to compile the C# runtime. But I get about 45 errors like this:

Error 1 The type or namespace name 'ExposedList' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Christian\Documents\spine-runtimes\spine-csharp\src\Animation.cs 37 12 spine-csharp

Anyone know why that is? Am I missing something?

Thanks a lot,
Christian

Related Discussions
...
  • تم التحرير

Thanks. Seems the C# project simple misses a reference to that file. It is not part of the project. Added it, now it works.

Cool. Thanks for sharing.

Now someone just needs to fix it in the repo 🙂

Already made a pull request.

Great. It seems the same issue also applies to the XNA runtime. Still investigating here though.


So I fixed it. First the file is again missing.

Second: I changed SkeletonMeshRenderer.cs Line 93 to:

var drawOrder = skeleton.DrawOrder;

And Line 96 to:

Slot slot = drawOrder.Items[i];

Also SkeletonRegionRenderer.cs
Line 86 to:

var drawOrder = skeleton.DrawOrder;

And Line 89 to:

Slot slot = drawOrder.Items[i];

That fixes everything for me.

Sorry, what were those lines trying to solve?
Were you using XNA?

Yes, I just tried the XNA runtime. And those lines are replacements I did for compilation errors. So no idea if this is the correct way to fix those, but it works for me at least 🙂


Also SkeletonBounds.cs is present in the directory, but not part of the C# runtime project.