Guess I must be missing something obvious since I don't see other complaints over this.
I am using Unity 5.3.2f1, Visual Studio 2013 Ultimate, and the Turnbased SDK (not PUN) framework downloaded from https://www.photonengine.com/en/turnbased/download#unity3d
My code builds and runs fine in Unity (authenticates with Photon, joins a lobby etc.) but Visual Studio complains unless I target .Net framework 4.0. If I use the default target framework of "Unity 3.5 .net subset" then it throws a lot of warnings and errors eg:
"The primary reference "Photon3Unity3D" could not be resolved because it has an indirect dependency on the framework assembly "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5,Profile=Unity Subset v3.5".
To resolve this problem, either remove the reference "Photon3Unity3D" or retarget your application to a framework version which contains "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"."
If I switch frameworks in VS everything works fine but obviously I don't really want to do that (and Unity switches me back anyway).
What have I done wrong or how can I fix this (eg. could I use the Photon3Unity3D.dll from PUN which presumably doesn't have this issue but even if that fixes it obviously I shouldn't have to do that).
What's the correct fix?
I am using Unity 5.3.2f1, Visual Studio 2013 Ultimate, and the Turnbased SDK (not PUN) framework downloaded from https://www.photonengine.com/en/turnbased/download#unity3d
My code builds and runs fine in Unity (authenticates with Photon, joins a lobby etc.) but Visual Studio complains unless I target .Net framework 4.0. If I use the default target framework of "Unity 3.5 .net subset" then it throws a lot of warnings and errors eg:
"The primary reference "Photon3Unity3D" could not be resolved because it has an indirect dependency on the framework assembly "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5,Profile=Unity Subset v3.5".
To resolve this problem, either remove the reference "Photon3Unity3D" or retarget your application to a framework version which contains "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"."
If I switch frameworks in VS everything works fine but obviously I don't really want to do that (and Unity switches me back anyway).
What have I done wrong or how can I fix this (eg. could I use the Photon3Unity3D.dll from PUN which presumably doesn't have this issue but even if that fixes it obviously I shouldn't have to do that).
What's the correct fix?