Hello together,

i got an issue with one existing dll of us. Basically i try to convert a library of us with some basic network components to a .net version which can be used with unity and the hololens.

The problem i got here that i got it working with unity by using the .net 3.5 base class version of unity, which caused the issue that i cant use it with the hololens since it kinda requires uwp.

And when i tried to use a universal class library it had assembly errors in unity and crashed in visual studio when i ignored unity for that bit.

So basically i need to know to use which .net version to actually work with unity AND the hololens. At this moment iam just trying out everything that i can think off…

Thanks already for your help!

Greetings Alaitoc

Alaitoc, Did you find the solution? I am struggeling with exactly the same issues…

Oh yeah, sorry that i didnt answer that question @Thijsvt.

I had to use a universal class library, imported the .dll into the unity project by adding it to the assets. Then i unchecked the plugin for the editor and compiled the project for uwp like you would do it normally for a hololens project. Then you should be able to see and use the referenced library in the created visual studio project.

For the part of the conversion of the old project (xamarin) to uwp. Basically i just created a universal class library and added all files as a link from the old project to the uwp project. The only changes i needed to make were removing threads and replacing them with tasks, so they would be compatible for both projects and needed to add a #ifdef for the network class with the sockets.

If you have any further questions, just ask and i will gladly help you out.

Greetings Alaitoc