Hi,
I’m having problem when I try to build and run a project from Visual Studio after I check Debugging Unity C# Projects. In Visual Studio it doesn’t build and shows me this output:
Project output
1>------ Rebuild All started: Project: Assembly-CSharp-firstpass-metro-vs2013, Configuration: Debug x86 ------
2>------ Rebuild All started: Project: Assembly-CSharp-firstpass-windows-phone-8.1, Configuration: Debug x86 ------
1> Running SerializationWeaver…
1> Symbols will be read from C:\Jogos\Unity\Example\Builds\Windows_Universal_CSharp\Example\Example.Windows\Unprocessed\UnityEngine.pdb
1> Weaving assembly C:\Jogos\Unity\Example\obj\Store 8.1\x86\Debug\x86\Debug\Assembly-CSharp-firstpass.dll
1> Symbols will be read from C:\Jogos\Unity\Example\obj\Store 8.1\x86\Debug\x86\Debug\Assembly-CSharp-firstpass.pdb
1> Will export symbols of pdb format
1> SerializationWeaver done.
1> Assembly-CSharp-firstpass-metro-vs2013 → C:\Jogos\Unity\Example\bin\Store 8.1\x86\Debug\Assembly-CSharp-firstpass.dll
2> Running SerializationWeaver…
2> Symbols will be read from C:\Jogos\Unity\Example\Builds\Windows_Universal_CSharp\Example\Example.WindowsPhone\Unprocessed\UnityEngine.pdb
2> Weaving assembly C:\Jogos\Unity\Example\obj\Phone 8.1\x86\Debug\x86\Debug\Assembly-CSharp-firstpass.dll
2> Symbols will be read from C:\Jogos\Unity\Example\obj\Phone 8.1\x86\Debug\x86\Debug\Assembly-CSharp-firstpass.pdb
2> Will export symbols of pdb format
2> SerializationWeaver done.
2> Assembly-CSharp-firstpass-windows-phone-8.1 → C:\Jogos\Unity\Example\bin\Phone 8.1\x86\Debug\Assembly-CSharp-firstpass.dll
3>------ Rebuild All started: Project: Assembly-CSharp-metro-vs2013, Configuration: Debug x86 ------
4>------ Rebuild All started: Project: Assembly-CSharp-windows-phone-8.1, Configuration: Debug x86 ------
3>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\PhotonClasses.cs(380,31,380,42): warning CS0109: The member ‘Photon.MonoBehaviour.networkView’ does not hide an inherited member. The new keyword is not required.
3>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\PhotonView.cs(324,24,324,45): warning CS0169: The field ‘PhotonView.OnSerializeMethodInfo’ is never used
3>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\PhotonView.cs(326,18,326,41): warning CS0169: The field ‘PhotonView.failedToFindOnSerialize’ is never used
3>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\Views\PhotonAnimatorView.cs(78,13,78,31): warning CS0169: The field ‘PhotonAnimatorView.m_ReceiverPosition’ is never used
3>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\Views\PhotonAnimatorView.cs(79,11,79,32): warning CS0169: The field ‘PhotonAnimatorView.m_LastDeserializeTime’ is never used
3>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\Views\PhotonTransformViewPositionControl.cs(8,11,8,25): warning CS0169: The field ‘PhotonTransformViewPositionControl.m_CurrentSpeed’ is never used
3> Running SerializationWeaver…
3> Symbols will be read from C:\Jogos\Unity\Example\Builds\Windows_Universal_CSharp\Example\Example.Windows\Unprocessed\UnityEngine.pdb
3> Weaving assembly C:\Jogos\Unity\Example\obj\Store 8.1\x86\Debug\x86\Debug\Assembly-CSharp.dll
3> Symbols will be read from C:\Jogos\Unity\Example\obj\Store 8.1\x86\Debug\x86\Debug\Assembly-CSharp.pdb
3> + Exit
3> + Photon.MonoBehaviour
3> + Photon.PunBehaviour
3> + PhotonHandler
3> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: ‘Photon3Unity3D, Version=4.0.0.8, Culture=neutral, PublicKeyToken=null’
3> em Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
3> em Mono.Cecil.DefaultAssemblyResolver.Resolve(AssemblyNameReference name)
3> em Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
3> em Unity.Serialization.Weaver.MethodEmitterBase.WillUnitySerialize(FieldDefinition fieldDefinition)
3> em Unity.Serialization.Weaver.SerializeMethodEmitter.ShouldProcess(FieldDefinition fieldDefinition)
3> em System.Linq.Enumerable.<>c__DisplayClassf1.<CombinePredicates>b__e(TSource x) 3> em System.Linq.Enumerable.WhereEnumerableIterator
1.MoveNext()
3> em Unity.Serialization.Weaver.MethodEmitterBase.EmitMethodBody()
3> em Unity.Serialization.Weaver.SerializationWeaver.AddSerializeMethod()
3> em Unity.Serialization.Weaver.SerializationWeaver.Weave()
3> em usw.Weaver.WeaveAssembly(String assemblyPath, AssemblyDefinition unityEngineAssemblyDefinition)
3> em usw.Weaver.Weave()
3> em usw.Program.RunProgram(ConversionOptions options)
3> em usw.Program.Main(String[ ] args)
3>C:\Jogos\Unity\Example\Assembly-CSharp-metro-vs2013.csproj(132,5): error MSB3073: The command ““C:\Program Files\Unity\Editor\Data\PlaybackEngines\metrosupport\Tools\SerializationWeaver\SerializationWeaver.exe” “C:\Jogos\Unity\Example\obj\Store 8.1\x86\Debug\x86\Debug\Assembly-CSharp.dll” -pdb -verbose -unity-engine=“C:\Jogos\Unity\Example\Builds\Windows_Universal_CSharp\Example\Example.Windows\Unprocessed\UnityEngine.dll” “C:\Jogos\Unity\Example\obj\Store 8.1\x86\Debug\x86\Debug”” exited with code 1.
4>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\PhotonClasses.cs(380,31,380,42): warning CS0109: The member ‘Photon.MonoBehaviour.networkView’ does not hide an inherited member. The new keyword is not required.
4>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\PhotonView.cs(324,24,324,45): warning CS0169: The field ‘PhotonView.OnSerializeMethodInfo’ is never used
4>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\PhotonView.cs(326,18,326,41): warning CS0169: The field ‘PhotonView.failedToFindOnSerialize’ is never used
4>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\Views\PhotonAnimatorView.cs(78,13,78,31): warning CS0169: The field ‘PhotonAnimatorView.m_ReceiverPosition’ is never used
4>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\Views\PhotonAnimatorView.cs(79,11,79,32): warning CS0169: The field ‘PhotonAnimatorView.m_LastDeserializeTime’ is never used
4>C:\Jogos\Unity\Example\Assets\Photon Unity Networking\Plugins\PhotonNetwork\Views\PhotonTransformViewPositionControl.cs(8,11,8,25): warning CS0169: The field ‘PhotonTransformViewPositionControl.m_CurrentSpeed’ is never used
4> Running SerializationWeaver…
4> Symbols will be read from C:\Jogos\Unity\Example\Builds\Windows_Universal_CSharp\Example\Example.WindowsPhone\Unprocessed\UnityEngine.pdb
4> Weaving assembly C:\Jogos\Unity\Example\obj\Phone 8.1\x86\Debug\x86\Debug\Assembly-CSharp.dll
4> Symbols will be read from C:\Jogos\Unity\Example\obj\Phone 8.1\x86\Debug\x86\Debug\Assembly-CSharp.pdb
4> + Exit
4> + Photon.MonoBehaviour
4> + Photon.PunBehaviour
4> + PhotonHandler
4> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: ‘Photon3Unity3D, Version=4.0.0.8, Culture=neutral, PublicKeyToken=null’
4> em Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
4> em Mono.Cecil.DefaultAssemblyResolver.Resolve(AssemblyNameReference name)
4> em Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
4> em Unity.Serialization.Weaver.MethodEmitterBase.WillUnitySerialize(FieldDefinition fieldDefinition)
4> em Unity.Serialization.Weaver.SerializeMethodEmitter.ShouldProcess(FieldDefinition fieldDefinition)
4> em System.Linq.Enumerable.<>c__DisplayClassf1.<CombinePredicates>b__e(TSource x) 4> em System.Linq.Enumerable.WhereEnumerableIterator
1.MoveNext()
4> em Unity.Serialization.Weaver.MethodEmitterBase.EmitMethodBody()
4> em Unity.Serialization.Weaver.SerializationWeaver.AddSerializeMethod()
4> em Unity.Serialization.Weaver.SerializationWeaver.Weave()
4> em usw.Weaver.WeaveAssembly(String assemblyPath, AssemblyDefinition unityEngineAssemblyDefinition)
4> em usw.Weaver.Weave()
4> em usw.Program.RunProgram(ConversionOptions options)
4> em usw.Program.Main(String[ ] args)
4>C:\Jogos\Unity\Example\Assembly-CSharp-windows-phone-8.1.csproj(132,5): error MSB3073: The command ““C:\Program Files\Unity\Editor\Data\PlaybackEngines\metrosupport\Tools\SerializationWeaver\SerializationWeaver.exe” “C:\Jogos\Unity\Example\obj\Phone 8.1\x86\Debug\x86\Debug\Assembly-CSharp.dll” -pdb -verbose -unity-engine=“C:\Jogos\Unity\Example\Builds\Windows_Universal_CSharp\Example\Example.WindowsPhone\Unprocessed\UnityEngine.dll” “C:\Jogos\Unity\Example\obj\Phone 8.1\x86\Debug\x86\Debug”” exited with code 1.
5>------ Rebuild All started: Project: Example.Windows, Configuration: Debug x86 ------
5> UnityInstallationDir “C:\Program Files\Unity\Editor”.
5> UnityWSAPlayerDir “C:\Program Files\Unity\Editor\Data\PlaybackEngines\metrosupport”.
5> UnityProjectDir “C:\Jogos\Unity\Example”.
5> Copying unprocessed assemblies…
5>C:\Jogos\Unity\Example\Builds\Windows_Universal_CSharp\Example\Example.Windows\Example.Windows.csproj(185,5): error MSB3030: Could not copy the file “C:\Jogos\Unity\Example\bin\Store 8.1\x86\Debug\Unprocessed\Assembly-CSharp.dll” because it was not found.
6>------ Rebuild All started: Project: Example.WindowsPhone, Configuration: Debug x86 ------
6> UnityInstallationDir “C:\Program Files\Unity\Editor”.
6> UnityWSAPlayerDir “C:\Program Files\Unity\Editor\Data\PlaybackEngines\metrosupport”.
6> UnityProjectDir “C:\Jogos\Unity\Example”.
6> Copying unprocessed assemblies…
6>C:\Jogos\Unity\Example\Builds\Windows_Universal_CSharp\Example\Example.WindowsPhone\Example.WindowsPhone.csproj(178,5): error MSB3030: Could not copy the file “C:\Jogos\Unity\Example\bin\Phone 8.1\x86\Debug\Unprocessed\Assembly-CSharp.dll” because it was not found.
========== Rebuild All: 2 succeeded, 4 failed, 0 skipped ==========
But, if I just uncheck Debugging Unity C# Projects I can build and run the project fine.
Why this happens?
Thank you