Building for Hololens Windows Store Universal 10 App
Options
I'm using Unity 5.4.0f3-HTP Hololens Edition to build my game, then updated to new v5.5.0f3 hoping for a fix, with the latest PUN 1.8, and I'm getting this error when building to Windows Store Universal 10 that I know other people have been reporting, but it seems slightly different:
I've gone through the other posts that had this error with WP8, but tried the suggestions there and it didn't fix. I removed the /Assets/Plugins/Photon3Unity3D.dll.mdb and Photon3Unity3D.pdb with the .meta... Then I tried the suggested fix from an old post downloading the patch Photon3Unity3D-v4-1-0-5-Metro-b1.zip and copying to /Assets/Plugins/Metro/ folder but then ended up with a bunch of different errors that were worst, so reverted. Also tried the suggestion of selecting /Assets.Plugins/Photon3Unity3D.dll in the inspector and unchecking WSAPlayer but that didn't do it either.
After reading all related posts for this kind of issue, looking for a little extra help, or something I might be missing. I'm anxious to port my game to the Hololens platform, and this is the last error I can't figure out keeping me from the next steps. Thanks.
UnityException: Failed to run serialization weaver with command "Temp\StagingArea\Data\Managed\Photon3Unity3D.dll" -pdb -verbose -unity-engine="Temp\StagingArea\Data\Managed\UnityEngine.dll" "Temp\StagingArea\TempSerializationWeaver" -lock=UWP\project.lock.json -additionalAssemblyPath="Temp\StagingArea\Data\Managed" -additionalAssemblyPath="Temp\StagingArea\Data\Managed\Plugins\X64" -additionalAssemblyPath="Temp\StagingArea\Data\Managed\Plugins\ARM" -additionalAssemblyPath="Temp\StagingArea\Data\Managed\Plugins\x86" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsVoipContract\1.0.0.0" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Printers.PrintersContract\1.0.0.0" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.FoundationContract\2.0.0.0" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.UniversalApiContract\2.0.0.0" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\References\Windows.Graphics.Printing3D.Printing3DContract\2.0.0.0" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Connectivity.WwanContract\1.0.0.0" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.ActivatedEventsContract\1.0.0.0" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.ActivationCameraSettingsContract\1.0.0.0" -additionalAssemblyPath="C:\Program Files (x86)\Windows Kits\10\References
....
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.pdb
Symbols will be read from Temp\StagingArea\Data\Managed\Photon3Unity3D.pdb
Weaving assembly D:\Projectz\Unity Projects\QuadChess-Hololens\Temp\StagingArea\Data\Managed\Photon3Unity3D.dll
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Mono.Cecil.ModuleDefinition.ProcessDebugHeader()
at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
at Mono.Cecil.ModuleReader.CreateModuleFrom(Image image, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at usw.Weaver.WeaveAssembly(String assemblyPath, AssemblyDefinition unityEngineAssemblyDefinition, ReaderParameters readerParameters)
at usw.Weaver.Weave()
at usw.Program.RunProgram(ConversionOptions options)
at usw.Program.Main(String[] args)
PostProcessWinRT.RunSerializationWeaver () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:465)
PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:123)
UnityEditor.Metro.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:130)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176)
UnityEditor.HostView:OnGUI()
I've gone through the other posts that had this error with WP8, but tried the suggestions there and it didn't fix. I removed the /Assets/Plugins/Photon3Unity3D.dll.mdb and Photon3Unity3D.pdb with the .meta... Then I tried the suggested fix from an old post downloading the patch Photon3Unity3D-v4-1-0-5-Metro-b1.zip and copying to /Assets/Plugins/Metro/ folder but then ended up with a bunch of different errors that were worst, so reverted. Also tried the suggestion of selecting /Assets.Plugins/Photon3Unity3D.dll in the inspector and unchecking WSAPlayer but that didn't do it either.
After reading all related posts for this kind of issue, looking for a little extra help, or something I might be missing. I'm anxious to port my game to the Hololens platform, and this is the last error I can't figure out keeping me from the next steps. Thanks.
0