xamarin / urho

Code to integrate with the Urho3D engine
Other
463 stars 122 forks source link

Conflicts when using both UrhoSharp and UrhoSharp.SharpReality #387

Open henningpohl opened 4 years ago

henningpohl commented 4 years ago

I'm developing an app that I would like to deploy to HoloLens and also test on the desktop (UWP). However, this seems to be trickier than anticipated. I can only run StereoApplications with SharpReality, but the Urho.UWP classes are not available then (and I need these to run my app locally). So my HoloLens project and my desktop project have to reference different assemblies. However, my main project (that should run on both) can't just reference both kinds of UrhoSharp as then there would be two copies of each class.

Am I missing something here and there is an easy way to build an application to run on both? Or do I need to change the compile settings and compile UrhoSharp myself to combine all the parts I need? I guess a final option would be to use the HoloLens emulator for local testing, but it would be nice not to need it.

utekai commented 4 years ago

From what I understand, you need to compile it for the hololens, then modify project/solution and compile for UWP. You will get an executable for each platform, with some minor differences for each, and neither will run on any other platform.

Of course the general xamarin solution/project setup/structure is intended to make this easier. If you happen to follow their own structure as in their open source projects.