I upgraded to Unity 4.5 and I built my existing project to Windows Store. When in Visual Studio, I tried to deploy it but I received the following error in my error list:
is there really a whitespace there “C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\MetroSuppo rt\Tools\AssemblyConverter.exe” (near MetroSupport) or is it just a copy-paste issue ?
In any case one of the build events commands failed.
For ex., maybe this one "copy /Y “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\Unprocessed*” "C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy" , try to execute it manually via CMD.
Thanks for the reply. The whitespace seems to be just a copy and paste issue.
I tried manually running the “coy /Y …” command in CMD and it worked fine … copied over 17 files. Are there any other commands that I can retry via CMD? I’m not familiar at all with Visual Studio so I really have no idea what the error message is saying.
Have you tried just building the project in Unity3d then manually opening it in Visual Studio - to test?
So I assume it builds normally in Unity? Visual Studio-which version you using BTW?
Yep … that’s what I’m doing. Building in Unity and then opening with VIsual Studio Express 2013 and clicking Deploy (Local Machine / Debug Build / x86).
Well, the error message is quite straightforward: “1> System.IO.FileNotFoundException: Assembly “Microsoft.Advertising.WinRT.UI, Version=8.1.40402.2, Culture=neutral, PublicKeyToken=null” file not found.”. I suppose one of your plugins is dependent on that DLL?
Great … thanks for your help. I’ll look into that. I’m guessing it’s the Reign plugin. For some odd reason, I downgraded to Unity 4.3 and I don’t get that error. I’m so close to release that I think I’ll just finish up the game and release it with Unity 4.3 and then go back to figuring this out afterwards.
Also, I noticed that under Unity 4.5, there is no longer an option to build to x64 for WIndows Store apps in Visual Studio? Was that an intentional change?
The Reign plugin (which I bought a couple of days ago specifically for my current project) is giving me build errors too. I had to remove it completely. Hopefully the developers update it to work with 4.5 because I’ve spent a lot of time updating my project to work with the 4.5 2D physics changes.
I can see it’s throwing a NullReferenceException, but it doesn’t tell me where (if it’s in my code.) So I am pretty much stumped at this point. I tried to remove the dlls with my code (to rule out my code was causing the problem) but still a NullReference was thrown.
EDIT: I have reverted back to 4.3.4 and can confirm the problem I was having is not present in 4.3.4 - I will therefore logically deduce this is probably a bug with the AssemblyConverter in Unity 4.5. I will submit a bug report when I can get around to it!
AssemblyConverter did not exist in 4.3, so I suppose you’re getting something else. Remember, don’t build on top of existing solutions when you upgrade a major Unity version (4.3 → 4.5 this time).
I’ve seen this happen when scripts used forbidden APIs, and thus AssemblyConverter was not able to resolve them. When you build your project from Unity to an empty folder, is Unity console error free?
Anyway, bug report would be nice. We’d at least fix the error message even if it’s not a bug in AssemblyConverter.
We got the same System.NullReferenceException with the AssemblyConverter, using Unity v4.5.3p, the project built in an empty folder, error free in Unity:
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\App42_Unity3D_SDK_WP8_2.9.1.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\ArabicSupport.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\ArabicSupport.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Assembly-CSharp-firstpass.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Assembly-CSharp-firstpass.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Assembly-CSharp.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Assembly-CSharp.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\FacebookWinPhone8.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\FacebookWinPhone8.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\IFacebook.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Microsoft.Advertising.WinRT.UI.winmd
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\MicrosoftAdvertising.winmd
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\ProCore.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\ProCore.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Reign.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Reign.Win8.MSAds.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Reign.Win8.MSAds.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Reign.WP8.AdMob.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Reign.WP8.AdMob.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Reign.WP8.MSAds.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\Reign.WP8.MSAds.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\SixBySeven.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\SixBySeven.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\UnityEngine.dll
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\UnityEngine.pdb
1> D:\Projects\bin\HoneyRun2.wsa\Honey Run\Unprocessed\WinRTLegacy.dll
1> 26 Datei(en) kopiert.
1> Running AssemblyConverter…
1> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
1> bei Unity.AssemblyWrapper.AddType(TypeReference type)
1> bei Unity.AssemblyWrapper.AddType(TypeReference type)
1> bei Unity.MetadataContainer.AddType(TypeReference type)
1> bei Unity.AssemblyWrapper.GetCallableMethods(TypeWrapper typeWrapper, TypeDefinition type, Boolean publicOnly)
1> bei Unity.AssemblyWrapper.AddType(TypeReference type)
1> bei Unity.MetadataContainer.AddType(TypeReference type)
1> bei Unity.GetTypesStep.Visit(TypeDefinition type)
1> bei Unity.TypeDefinitionDispatcher.DispatchType(TypeDefinition type)
1> bei Unity.TypeDefinitionDispatcher…ctor(ModuleDefinition module, ITypeDefinitionVisitor visitor)
1> bei Unity.GetTypesStep.ProcessModule()
1> bei Unity.ModuleStep.Execute()
1> bei Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
1> bei Unity.Operation.Execute()
1> bei Unity.Program.Main(String[ ] args)
1> AssemblyConverter done.
Still bugged I noticed the bug happen when you check “Unity C# projects” option when building in Unity builder or just adding external library .dll like json.