Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building to UWP Universal 10 in Unity #270

Open
pierusan opened this issue Jun 9, 2016 · 3 comments
Open

Building to UWP Universal 10 in Unity #270

pierusan opened this issue Jun 9, 2016 · 3 comments

Comments

@pierusan
Copy link

pierusan commented Jun 9, 2016

Hi,

In Unity 5.3.4f1 I created an empty project and simply added in a Plugin folder the websocket-sharp.dll I had built in MonoDevelop (default Target Framework Mono / .NET 3.5).

I then tried to build the app to Windows platform UWP Universal 10 but it didn't work.
I get the error:
UnityException: Failed to run serialization weaver with command "Temp\StagingArea\Data\Managed\websocket-sharp.dll"

Any idea on how to fix this?

Thanks a lot
Pierre

@sta
Copy link
Owner

sta commented Jun 11, 2016

Hello there,

Could you please post whole of error log that you got?

But, unfortunately, this library doesn't support with such UWP because .NET api for UWP is incompatible with many part of standard .NET.

@craigjmidwinter
Copy link

@Bierro, did you come up with a solution for this? I'm running into the same issue

@pierusan
Copy link
Author

@sta Thanks for the answer. I ended up using another library for this in the end.

@wardcraigj I didn't, I finally used Windows.Networking.Sockets library https://msdn.microsoft.com/en-us/windows/uwp/networking/websockets to make it work.
If you go for that option, you'll have to put your code in Unity between the following lines

#if WINDOWS_UWP

#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants