microsoft / WebRTC-universal-samples

WebRTC samples for the Universal Windows Platform.
177 stars 70 forks source link

Org.WebRtc miss in PeerCCUnity #21

Closed peptrig closed 6 years ago

peptrig commented 6 years ago

Hi all,

I tried to build in Unity PeerCCUnity project to UWP platform but I have the follow error:

ArgumentException: The Assembly Org.WebRtc is referenced by PeerConnectionClientCore ('Assets/Plugins/WSA/PeerConnectionClientCore.dll'). But the dll is not allowed to be included or could not be found.

So I copied the dll from the path "PeerCC-Sample\Output\PeerCC.ClientUnityD3D\WebRtc\bin\x86\Debug" into the path "PeerCCUnity\Assets\Plugins\WSA" but I have another error when I build:

UnityException: Failed to run reference rewriter with command --target="Temp\StagingArea\PeerConnectionClientCore.dll"

Do you know how to solve?

Fritzwald commented 6 years ago

Hi peptrig,

I had the same problem. In the folder where you found the Org.WebRtc.dll there is also a file called Org.WebRtc.winmd which goes in the same folder in the Unity project. Hopefully this helps you as well.

peptrig commented 6 years ago

Thank you very much @Fritzwald, I solved. You're right.