When building I receive a error message:
error CS0433: The type ‘IBuffer’ exists in both ‘Windows.Foundation.UniversalApiContract, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime’ and ‘Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime’
Unity version 5.2.1p1, created new project without any additional plugins.
using UnityEngine;
#if UNITY_WSA && !UNITY_EDITOR
using Windows.Storage.Streams;
#endif
public class NewBehaviourScript : MonoBehaviour {
void Start () {
#if UNITY_WSA && !UNITY_EDITOR
IBuffer passwordBuffer = null;
#endif
}
}
Code compiles fine for Windows Universal 8.1 but fails for Universal 10.
It appears to me that both 8.1 and 10 libraries are added for Universal 10 build
Similar problem is discussed here, but mine is not connected to WinRTLegacy