Search Unity

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

Discussion in 'Windows' started by Rajmahal, May 28, 2014.

  1. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    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?
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    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.
     
  3. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    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.
     
  4. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    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?
     
  5. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    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?
     
  6. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    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).
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    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?
     
  8. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    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?
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    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.
     
  10. pumpkinszwan

    pumpkinszwan

    Joined:
    Feb 6, 2014
    Posts:
    214
    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.
     
  11. TylerO

    TylerO

    Joined:
    Aug 21, 2011
    Posts:
    35
    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!
     
    Last edited: May 31, 2014
  12. yaroslav.sprinsyan

    yaroslav.sprinsyan

    Joined:
    Nov 13, 2013
    Posts:
    1
    Have the same problem but in both 4.3.4 and 4.5 versions :(

    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.
     
  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    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.
     
  14. grofie

    grofie

    Joined:
    Dec 9, 2013
    Posts:
    30
    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.
     
  15. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    Please, report a bug.
     
  16. Meceka

    Meceka

    Joined:
    Dec 23, 2013
    Posts:
    423
    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
     
  17. IllogicalGames

    IllogicalGames

    Joined:
    Apr 16, 2013
    Posts:
    174
    still havent found any solution for this. im too having this difficulty
     
  18. Heolix

    Heolix

    Joined:
    Feb 19, 2014
    Posts:
    4
    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.
     
    Last edited: Oct 12, 2014
  19. saikiran80

    saikiran80

    Joined:
    Oct 11, 2014
    Posts:
    1
    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?
     
  20. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    Could you attach Editor.log?
     
  21. Grygus

    Grygus

    Joined:
    Aug 7, 2013
    Posts:
    18
    Hi guys i have same kind of errors but as Tautvydas Zilys i think its due to unsupported api, most of the plugins which were built without problems on WP8 are useless for WP8.1 I have this problems with App42 plugins and few Prime31 plugins did semeone found any workaround or its just impossible for now to build Universal WIndows Phone App when some api is unsupported despite I don't use this api?
     
  22. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    You mean source plugins? You could set compilation override to None or Use .NET Core Partially in player settings, but you should still run WACK on an app, to see if it does not complain about those APIs.
     
  23. Grygus

    Grygus

    Joined:
    Aug 7, 2013
    Posts:
    18
    It throws many reference rewriter errors with .dll if you put this into unprocessed .dll it will crash with error described above.
    And this is official answer from Prime31 support
    "Skip the universal build and it is much easier to get things working. Our post build system does not support universal builds so it will not auto-setup the Visual Studio project and Unity seems to have many bugs with regard to putting incorrect DLLs in both the Win Store and Win Phone build."

    But how can i setup it manually? I have to make universal app build unfortunately.
     
  24. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    You SHOULD NOT use WP8.0 plugins with universal apps. They are not compatible. You need to use plugins that are built for Windows Store. Prime31 has a whole bunch of Windows Store plugins, which should work just fine on universal apps running on both PC and phone.
     
  25. Grygus

    Grygus

    Joined:
    Aug 7, 2013
    Posts:
    18
    Thanks for the replay I never thought about that, And i didn't find any note that those plugins are for WP8 only, from the support forum where people had problems with WP plugins on Universal App Prime31 just said that Unity doesn't handle dll well. Moreover a lot of Api i still different between Phone and Windows so I don't think it will be compatible. But i will give it a shot, a and share the result.
     
  26. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    That's the point: WP8.0 are different from Windows, but with Universal Apps, 98% of the APIs are identical. Hence the name - Universal apps :).
     
  27. Grygus

    Grygus

    Joined:
    Aug 7, 2013
    Posts:
    18
    Unfortunately none of the plugins work for Windows Universal App so right now it is kinda useless, maybe someone know any working plugins for wp8.1 universal build?
     
  28. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    How do they not work? Could you go into more details? These are Windows Store plugins, right?
     
  29. Grygus

    Grygus

    Joined:
    Aug 7, 2013
    Posts:
    18
    There is nothing to say actually, Prime31 say he do not support Universal App, I tried his WIndows Store Plugins, Unity creates vs project without problems, building is also without problems, but they are just not working :) I see GUI buttons, but nothing works and sometimes there is just null exception after pressing buttons. All needed dlls are referenced correctly.
     
  30. Meceka

    Meceka

    Joined:
    Dec 23, 2013
    Posts:
    423
    I also tried switching to universal from wp8 build, but lot's of plugins doesn't support windows store, and therefore they don't support windows store either. Some of them: Playmaker, KGF camera, daikon forge GUI (dfgui had some weird errors).
    Playmaker is most crucial for me. I don't have time to replace playmaker states with new scripts. And therefore I am stuck with WP8 build.
     
  31. keithpatton

    keithpatton

    Joined:
    Oct 24, 2013
    Posts:
    3
    @Rajmahal can i ask where you got the MarkerMetro.Unity.WinLegacy.dll from (this is something we authored). Not a big deal, just interested, feel free to hit me up on twitter @kpatton.
     
  32. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    @keithpatton I actually have no idea. For this game, I used NGUI, Cruncher, AGK and Reign plugins so perhaps it comes through one of those? Most likely Reign plugins as I remember they had some plugin called Metro.
     
  33. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    Actually I did a quick search for MarkerMetro ... and I don't think it's in my extracts. I think you're seeing the reference in Tyler0's log.