error: Could not load file or assembly 'UnityEngine.Purchasing In the UWP solution
In the editor and in android apk everything is fine.
The error happens in the file MainPage,xaml.cs at the expresion appCallbacks.SetBridge(_bridge);
I’m just testing in local without configure anything on the Windows Dev Center
The manual says that: This removes the need to configure anything on the Windows Dev Center or communicate with the the Windows Store via the app for initial integration testing.
The UnityEngine.Purchasing.dll is in the solution explorer pointing to the file in the directory \Unprocessed as the others dll’s.
You can see others dll’s and pdb’s in the output directory but not the Purchasing (dll and the pdb)
The complete error is:
System.TypeInitializationException: The type initializer for ‘WinRTBridge.WinRTBridge’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘WinRTBridge.TypeInformation’ threw an exception. —> System.IO.FileNotFoundException: Could not load file or assembly ‘UnityEngine.Purchasing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’. El sistema no puede encontrar el archivo especificado.
at UnityEngineInternal.BootstrapHelpers.FillTypeMaps0(Dictionary2 , List
1 )