Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error building for Universal Windows App
#1
Hello there!
we really love curvy, but we have some problems building for Windows10 Universal app.
We're currently working with Curvy 1.6.1 and everything works fine until we start a Win10 build.

13 errors shows up, every one of them apparently caused by a missed dll load (here is the error text:)

"Reference rewriter: Error: method `System.Void System.Console::WriteLine(System.String)` doesn't exist in target framework. It is referenced from poly2tri.dll at System.Void FluffyUnderware.Curvy.ThirdParty.poly2tri.DTSweep::FlipScanEdgeEvent(FluffyUnderware.Curvy.ThirdParty.poly2tri.DTSweepContext,FluffyUnderware.Curvy.ThirdParty.poly2tri.TriangulationPoint,FluffyUnderware.Curvy.ThirdParty.poly2tri.TriangulationPoint,FluffyUnderware.Curvy.ThirdParty.poly2tri.DelaunayTriangle,FluffyUnderware.Curvy.ThirdParty.poly2tri.DelaunayTriangle,FluffyUnderware.Curvy.ThirdParty.poly2tri.TriangulationPoint)."

is there any quick solution? are you planning to solve this problem soon? we're considering upgrade, but for now curvy 1.6.1 works super-fine for us and upgrading would require quite a lot of project refactoring

p.s. Already try to build a win10 app with new Curvy 2.0.2, but as well quite a lot of errors show up (after a bit of exploration, they all seem to be caused by the fact that the win10 universal app subset code is smaller than standard c#, and some method aren't allowed, for example Assembly.GetAssembly(Type))

looking forward to get your help!
Reply
#2
Thanks for pointing this out. I'll fix this for 2.0.3 (will be released this week) and let you know once a temporary fix is available for this problems.
Reply
#3
Unfortunately we won't provide fixes for the old 1.61, but I've attached the source of poly2tri.dll used in 1.61. Just replace the DLL with the source and comment/remove any unsupported code.

The problem with Windows 10 Universal Apps is that I don't have a Win 10 box at hand, so I can't test it yet. I'll update one of my boxes to Win10 asap, but this could take a day or two.


Attached Files
.zip   poly2tri.zip (Size: 96.85 KB / Downloads: 1)
Reply
#4
Running a box on Win 10 now. Anyone has a good list or more details about limitations/.NET subset that UWP uses? I didn't found much details about the subject...
Reply
#5
Thanks so much Jake! with the source code replacement everything worked fine in 1.6.1, successfull win10 build! Big Grin worsk perfectly.

about the .NET subset, i didn't find much either, except for this Windows app developer support reference, from which i deduced the missing of some methods

here's the link: https://msdn.microsoft.com/en-us/library/windows/apps/jj207211(v=vs.105).aspx

again, thank you for the super fast answer & support!
Curvy is Amazing btw Big Grin
Reply
#6
Thanks for the link, I'm working on making Curvy 2 compatible to Win 10 Universal builds now.
Reply
#7
Update on the subject: I managed to make DevTools at least compile for WSA (by stripping almost any reflection and threading stuff out using compiler directives), but Visual Studio fails to build the universal app. But it does for an empty project as well, so I guess I had to dive deeper into that stuff.

I'll release 2.0.3 containing bugfixes before that, though.

The part I'm not getting clear right now is why my editor only classes can't rely on things like "default" reflection. I would have assumed editor classes aren't considered when building...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error when trying to connect nodes in prefab edit mode Lupos 4 9 06-02-2023, 10:27 AM
Last Post: _Aka_
  building game changes UV spaces for generated mesh scr33ner 9 15 01-18-2023, 09:16 AM
Last Post: _Aka_
  Error when switching splines ricke 3 7 10-10-2022, 08:46 AM
Last Post: _Aka_
  Error when recreating splines / connections jh092 3 7 07-25-2022, 09:58 AM
Last Post: _Aka_

Forum Jump: