Error During Build / Deploy in Visual Studio Express 2013 with Unity 4.5

Hi,

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:


Error 1 The command "echo UnityInstallationDir ‘C:\Program Files (x86)\Unity\Editor’
echo UnityProjectDir ‘C:\Users\Raj\Documents\Action Game\ActionGame’
echo Copying assemblies…
copy /Y “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\Unprocessed*” "C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy"
echo Running AssemblyConverter…
“C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\MetroSupport\Tools\AssemblyConverter.exe” -platform=wsa81 “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\Assembly-CSharp-firstpass.dll” “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\Assembly-CSharp.dll” “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\Assembly-UnityScript-firstpass.dll” “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\Assembly-UnityScript.dll” “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\Boo.Lang.dll” “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\CruncherScripts.dll” “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\Reign.dll” “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\UnityEngine.dll” “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\UnityScript.Lang.dll” “C:\Users\Raj\Documents\Gun Frenzy 2\Gun Frenzy\WinRTLegacy.dll”
echo AssemblyConverter done.
" exited with code 1. Gun Frenzy


My project built / deployed properly in Visual Studio before the Unity 4.5 upgrade. Does anyone what might be causing this error?

Hi,

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.

I tried again after changing a few things and searching google for possible solutions. I still get the same error when building for Windows Store.

Here is the detailed build log:


1>------ Rebuild All started: Project: Gun Frenzy, Configuration: Debug x86 ------
1> UnityInstallationDir ‘C:\Program Files (x86)\Unity\Editor’
1> UnityProjectDir ‘C:\Users\Raj\Documents\Gun Frenzy Unity\Action Game\ActionGame’
1> Copying assemblies…
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Assembly-CSharp-firstpass.dll
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Assembly-CSharp-firstpass.pdb
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Assembly-CSharp.dll
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Assembly-CSharp.pdb
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Assembly-UnityScript-firstpass.dll
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Assembly-UnityScript-firstpass.pdb
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Assembly-UnityScript.dll
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Assembly-UnityScript.pdb
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Boo.Lang.dll
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\CruncherScripts.dll
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\CruncherScripts.pdb
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Reign.dll
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\Reign.pdb
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\UnityEngine.dll
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\UnityEngine.pdb
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\UnityScript.Lang.dll
1> C:\Gun Frenzy Build\Gun Frenzy\Unprocessed\WinRTLegacy.dll
1> 17 file(s) copied.
1> Running AssemblyConverter…
1> System.IO.FileNotFoundException: Assembly “Microsoft.Advertising.WinRT.UI, Version=8.1.40402.2, Culture=neutral, PublicKeyToken=null” file not found.
1> at Unity.PlatformAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
1> at Unity.PlatformAssemblyResolver.Resolve(AssemblyNameReference name)
1> at Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
1> at Mono.Cecil.TypeReference.Resolve()
1> at Unity.AssemblyWrapper.AddType(TypeReference type)
1> at Unity.MetadataContainer.AddType(TypeReference type)
1> at Unity.AssemblyWrapper.GetCallableMethods(TypeWrapper typeWrapper, TypeDefinition type, Boolean publicOnly)
1> at Unity.AssemblyWrapper.AddType(TypeReference type)
1> at Unity.MetadataContainer.AddType(TypeReference type)
1> at Unity.GetTypesStep.Visit(TypeDefinition type)
1> at Unity.TypeDefinitionDispatcher.DispatchType(TypeDefinition type)
1> at Unity.TypeDefinitionDispatcher…ctor(ModuleDefinition module, ITypeDefinitionVisitor visitor)
1> at Unity.GetTypesStep.ProcessModule()
1> at Unity.ModuleStep.Execute()
1> at Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
1> at Unity.Operation.Execute()
1> at Unity.Program.Main(String[ ] args)
1> AssemblyConverter done.
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1130,5): error MSB3073: The command "echo UnityInstallationDir ‘C:\Program Files (x86)\Unity\Editor’
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1130,5): error MSB3073: echo UnityProjectDir ‘C:\Users\Raj\Documents\Gun Frenzy Unity\Action Game\ActionGame’
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1130,5): error MSB3073: echo Copying assemblies…
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1130,5): error MSB3073: copy /Y “C:\Gun Frenzy Build\Gun Frenzy\Unprocessed*” "C:\Gun Frenzy Build\Gun Frenzy"
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1130,5): error MSB3073: echo Running AssemblyConverter…
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1130,5): error MSB3073: “C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\MetroSupport\Tools\AssemblyConverter.exe” -platform=wsa81 “C:\Gun Frenzy Build\Gun Frenzy\Assembly-CSharp-firstpass.dll” “C:\Gun Frenzy Build\Gun Frenzy\Assembly-CSharp.dll” “C:\Gun Frenzy Build\Gun Frenzy\Assembly-UnityScript-firstpass.dll” “C:\Gun Frenzy Build\Gun Frenzy\Assembly-UnityScript.dll” “C:\Gun Frenzy Build\Gun Frenzy\Boo.Lang.dll” “C:\Gun Frenzy Build\Gun Frenzy\CruncherScripts.dll” “C:\Gun Frenzy Build\Gun Frenzy\Reign.dll” “C:\Gun Frenzy Build\Gun Frenzy\UnityEngine.dll” “C:\Gun Frenzy Build\Gun Frenzy\UnityScript.Lang.dll” “C:\Gun Frenzy Build\Gun Frenzy\WinRTLegacy.dll”
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1130,5): error MSB3073: echo AssemblyConverter done.
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1130,5): error MSB3073: " exited with code 1.


Can anyone help diagnose the issue?

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?

Yes, as it only confused people - we don’t ship x64 builds of Windows Store Apps player, so if you try to build it in 4.3, it would just fail.

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 too am having problems with the AssemblyConverter in 4.5… here is the stack trace I am getting when trying to build:

1>------ Rebuild All started: Project: Daggervale, Configuration: Master Win32 ------
1> UnityInstallationDir ‘E:\Program Files (x86)\Unity 4\Editor’
1> pch.cpp
1> App.xaml.cpp
1> MainPage.xaml.cpp
1> XamlTypeInfo.Impl.g.cpp
1> Generating code
1> Finished generating code
1> XamlTypeInfo.g.cpp
1> Creating library E:\Daggervale\WSA\Master\Daggervale\Daggervale.lib and object E:\Daggervale\WSA\Master\Daggervale\Daggervale.exp
1> Generating code
1> Finished generating code
1> Daggervale.vcxproj → E:\Daggervale\WSA\Master\Daggervale\Daggervale.exe
1> UnityInstallationDir ‘E:\Program Files (x86)\Unity 4\Editor’
1> UnityProjectDir ‘E:\Daggervale’
1> Copying assemblies…
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Assembly-CSharp-firstpass.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Assembly-CSharp-firstpass.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Assembly-CSharp.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Assembly-CSharp.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Assembly-UnityScript.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Assembly-UnityScript.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Boo.Lang.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\clipper_library.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\clipper_library.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\HOTween.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\HOTween.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Ionic.Zip.Reduced.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Ionic.Zip.Reduced.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\JsonFx.Json.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\JsonFx.Json.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\MarkerMetro.Unity.WinLegacy.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\MarkerMetro.Unity.WinLegacy.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Pathfinding.Ionic.Zip.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Pathfinding.Ionic.Zip.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Poly2Tri.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\Poly2Tri.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\UnityEngine.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\UnityEngine.pdb
1> E:\Daggervale\WSA\Daggervale\Unprocessed\UnityScript.Lang.dll
1> E:\Daggervale\WSA\Daggervale\Unprocessed\WinRTLegacy.dll
1> 25 file(s) copied.
1> Running AssemblyConverter…
1> System.NullReferenceException: Object reference not set to an instance of an object.
1> at Unity.AssemblyWrapper.AddType(TypeReference type)
1> at Unity.AssemblyWrapper.AddType(TypeReference type)
1> at Unity.MetadataContainer.AddType(TypeReference type)
1> at Unity.AssemblyWrapper.GetCallableMethods(TypeWrapper typeWrapper, TypeDefinition type, Boolean publicOnly)
1> at Unity.AssemblyWrapper.AddType(TypeReference type)
1> at Unity.MetadataContainer.AddType(TypeReference type)
1> at Unity.AssemblyWrapper.GetCallableMethods(TypeWrapper typeWrapper, TypeDefinition type, Boolean publicOnly)
1> at Unity.AssemblyWrapper.AddType(TypeReference type)
1> at Unity.MetadataContainer.AddType(TypeReference type)
1> at Unity.GetTypesStep.Visit(TypeDefinition type)
1> at Unity.TypeDefinitionDispatcher.DispatchType(TypeDefinition type)
1> at Unity.TypeDefinitionDispatcher…ctor(ModuleDefinition module, ITypeDefinitionVisitor visitor)
1> at Unity.GetTypesStep.ProcessModule()
1> at Unity.ModuleStep.Execute()
1> at Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
1> at Unity.Operation.Execute()
1> at Unity.Program.Main(String[ ] args)
1> AssemblyConverter done.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "echo UnityInstallationDir ‘E:\Program Files (x86)\Unity 4\Editor’
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: echo UnityProjectDir ‘E:\Daggervale’
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: echo Copying assemblies…
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: copy /Y “E:\Daggervale\WSA\Daggervale\Unprocessed*” “E:\Daggervale\WSA\Daggervale"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: echo Running AssemblyConverter…
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: “E:\Program Files (x86)\Unity 4\Editor\Data\PlaybackEngines\MetroSupport\Tools\AssemblyConverter.exe” -platform=wsa81 “E:\Daggervale\WSA\Daggervale\Assembly-CSharp-firstpass.dll” “E:\Daggervale\WSA\Daggervale\Assembly-CSharp.dll” “E:\Daggervale\WSA\Daggervale\Assembly-UnityScript.dll” “E:\Daggervale\WSA\Daggervale\Boo.Lang.dll” “E:\Daggervale\WSA\Daggervale\clipper_library.dll” “E:\Daggervale\WSA\Daggervale\HOTween.dll” “E:\Daggervale\WSA\Daggervale\Ionic.Zip.Reduced.dll” “E:\Daggervale\WSA\Daggervale\JsonFx.Json.dll” “E:\Daggervale\WSA\Daggervale\MarkerMetro.Unity.WinLegacy.dll” “E:\Daggervale\WSA\Daggervale\Pathfinding.Ionic.Zip.dll” “E:\Daggervale\WSA\Daggervale\Poly2Tri.dll” “E:\Daggervale\WSA\Daggervale\UnityEngine.dll” “E:\Daggervale\WSA\Daggervale\UnityScript.Lang.dll” “E:\Daggervale\WSA\Daggervale\WinRTLegacy.dll”
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: echo AssemblyConverter done.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd” exited with code 1.

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!

Have the same problem but in both 4.3.4 and 4.5 versions :frowning:

1> UnityInstallationDir ‘C:\Program Files (x86)\Unity\Editor’
1> UnityProjectDir ‘D:\Workspace\WRLDUnity’
1> Copying assemblies…
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\FBRLogger.dll
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\FBRLogger.pdb
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\HOTween.dll
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\HOTween.pdb
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\ICSharpCode.SharpZipLib.dll
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\ICSharpCode.SharpZipLib.pdb
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\MyPlugin.dll
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\MyPlugin.pdb
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\UnityEngine.dll
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\UnityEngine.pdb
1> D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed\WinRTLegacy.dll
1> 11 file(s) copied.
1> 1 file(s) copied.
1> 1 file(s) copied.
1> 1 file(s) copied.
1> 1 file(s) copied.
1> Running AssemblyConverter…
1> System.NullReferenceException: Object reference not set to an instance of an object.
1> at Unity.AssemblyWrapper.AddType(TypeReference type)
1> at Unity.AssemblyWrapper.AddType(TypeReference type)
1> at Unity.MetadataContainer.AddType(TypeReference type)
1> at Unity.AssemblyWrapper.GetCallableMethods(TypeWrapper typeWrapper, TypeDefinition type, Boolean publicOnly)
1> at Unity.AssemblyWrapper.AddType(TypeReference type)
1> at Unity.MetadataContainer.AddType(TypeReference type)
1> at Unity.GetTypesStep.Visit(TypeDefinition type)
1> at Unity.TypeDefinitionDispatcher.DispatchType(TypeDefinition type)
1> at Unity.TypeDefinitionDispatcher…ctor(ModuleDefinition module, ITypeDefinitionVisitor visitor)
1> at Unity.GetTypesStep.ProcessModule()
1> at Unity.ModuleStep.Execute()
1> at Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
1> at Unity.Operation.Execute()
1> at Unity.Program.Main(String[ ] args)
1> AssemblyConverter done.
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: The command "echo UnityInstallationDir ‘C:\Program Files (x86)\Unity\Editor’
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: echo UnityProjectDir ‘D:\Workspace\WRLDUnity’
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: echo Copying assemblies…
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: copy /Y “D:\Workspace\WRLD_Builds\METRO\World of Cubes\Unprocessed*” "D:\Workspace\WRLD_Builds\METRO\World of Cubes"
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: copy /Y “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Unprocessed\Assembly-CSharp.dll” “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Assembly-CSharp.dll”
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: copy /Y “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Unprocessed\Assembly-CSharp-firstpass.dll” “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Assembly-CSharp-firstpass.dll”
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: if exist “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Unprocessed\Assembly-CSharp.pdb” copy /Y “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Unprocessed\Assembly-CSharp.pdb” “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Assembly-CSharp.pdb”
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: if exist “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Unprocessed\Assembly-CSharp-firstpass.pdb” copy /Y “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Unprocessed\Assembly-CSharp-firstpass.pdb” “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Assembly-CSharp-firstpass.pdb”
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: echo Running AssemblyConverter…
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: “C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\MetroSupport\Tools\AssemblyConverter.exe” -platform=wsa80 “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Assembly-CSharp.dll” “D:\Workspace\WRLDUnity\bin\Store 8.0\ARM\Debug\Assembly-CSharp-firstpass.dll” “D:\Workspace\WRLD_Builds\METRO\World of Cubes\FBRLogger.dll” “D:\Workspace\WRLD_Builds\METRO\World of Cubes\HOTween.dll” “D:\Workspace\WRLD_Builds\METRO\World of Cubes\ICSharpCode.SharpZipLib.dll” “D:\Workspace\WRLD_Builds\METRO\World of Cubes\MyPlugin.dll” “D:\Workspace\WRLD_Builds\METRO\World of Cubes\UnityEngine.dll” “D:\Workspace\WRLD_Builds\METRO\World of Cubes\WinRTLegacy.dll”
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: echo AssemblyConverter done.
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1069,5): error MSB3073: " exited with code 1.

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.

Please, report a bug.

I also have same issue while building for Windows Phone 8.1 , did anyone find a solution?
Building for Windows Phone 8.0 works fine. Version: 4.5.4p1

still havent found any solution for this. im too having this difficulty

Still bugged :frowning: 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.

Error 1 The command "echo UnityInstallationDir ‘C:\Program Files (x86)\Unity\Editor’
echo UnityProjectDir ‘H:\Games\Videos\33 Multiple Levels\BuzzSaw’
echo Copying assemblies…
copy /Y “C:\Users\saikiran\Music\New folder\BuzzSaw\Unprocessed*” "C:\Users\saikiran\Music\New folder\BuzzSaw"
copy /Y “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Unprocessed\Assembly-CSharp.dll” “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Assembly-CSharp.dll”
copy /Y “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Unprocessed\Assembly-CSharp-firstpass.dll” “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Assembly-CSharp-firstpass.dll”
if exist “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Unprocessed\Assembly-CSharp.pdb” copy /Y “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Unprocessed\Assembly-CSharp.pdb” “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Assembly-CSharp.pdb”
if exist “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Unprocessed\Assembly-CSharp-firstpass.pdb” copy /Y “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Unprocessed\Assembly-CSharp-firstpass.pdb” “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Assembly-CSharp-firstpass.pdb”
echo Running AssemblyConverter…
“C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\MetroSupport\Tools\AssemblyConverter.exe” -platform=wsa81 “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Assembly-CSharp.dll” “H:\Games\Videos\33 Multiple Levels\BuzzSaw\bin\Store 8.1\x86\Debug\Assembly-CSharp-firstpass.dll” “C:\Users\saikiran\Music\New folder\BuzzSaw\UnityEngine.dll” “C:\Users\saikiran\Music\New folder\BuzzSaw\WinRTLegacy.dll”
echo AssemblyConverter done.
" exited with code 1. BuzzSaw

while running in VS2013 Professional what to do know?

Could you attach Editor.log?