I’ve been trying to port a game to Windows Universal 10 (UAP) for couple days, but haven’t been able to solve the error I’m getting when I’m still compiling scripts during build.
Assets\Analytics\Scripts\Platform-WindowsStore\File.cs(84,30): error CS0433: The type ‘StorageFile’ 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’
Assets\Analytics\Scripts\Platform-WindowsStore\File.cs(97,60): error CS0433: The type ‘CreationCollisionOption’ 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’
The script in case is used by the Google Universal Analytics plugin, although it also happens with GameAnalytics (not the exact same types, but same error).
I’ve been looking for some solutions, but haven’t been able to find much. I’m using Unity 5.3.2p1 (tried with 5.3.1f1 and 5.3.1p4 before and it didn’t help) and I’ve got Windows 10 RTM and Microsoft Emulator for Windows 10 mobile.
I’ve been through these posts:
And according to this post, the problem is that the compiler can’t choose which .dll he should be using (which is strange, since when I use Windows.StorageFile it says it doesn’t exist on the library, and when I use Windows.Foundation.UniversalApiContract.StorageFile, it says the UniversalApiContract doesn’t exist in the library).
I would really appreciate some help.