When running my Win Store Apps project without debugging c# project check, it works fine. But when running it with debugging c# project check, it fails with error :
and one more error comes :
Could not copy the file “path_of_project\bin\Store 8.1\x86\Debug\Unprocessed\Assembly-CSharp.dll” because it was not found.
Unity Version : 5.0.1p1
OS : Windows 8.1
Visual Studio 2013.
Any help would be appreciated.
P.S : I also check the similar thread about this error here
RC2 - Universal 8.1 - Debugging C# Project: checked = Error, unchecked = Works - Unity Engine - Unity Discussions
but nothing got to resolve my problem.
Check if Assembly-CSharp.dll was compiled succesfully
Thanks tomas for reply, how to check that.
Which architecture are you using?
Regarding Assembly-CSharp, right click on it, and click Build, and see if it will be succesful.
Architecture means ? Where to find it and right click on what and where?
I am building project with Debugging c# project check, project builds successfully.
But when run it in Visual Studio 2013, it gives the above error.
akkiDev:
Architecture means ? Where to find it and right click on what and where?
I am building project with Debugging c# project check, project builds successfully.
But when run it in Visual Studio 2013, it gives the above error.
Architecture means X86, ARM or X64, right click on Assembly-CSharp project in the solution explorer, and hit build. Sorry for not being clear.
My architecture is x86 , and there are 3 projects in the solution.
First one builds successfully. But second and third gives the above error.
The second is Assembly-CSharp-metro, right? What’s the error there?
The errors are :
and one more error comes :
Could not copy the file “path_of_project\bin\Store 8.1\x86\Debug\Unprocessed\Assembly-CSharp.dll” because it was not found.
And warnings :::
I think, this doesn’t show everything, try switching to Output window.
Here is my output window :
And the Line which is not fully covered in the snapshot :
2>D:\ZUNITYPROJ\WinRTTest\UnityIOS\Assembly-CSharp-metro-vs2013.csproj(132,5): error MSB3073: The command ““C:\Program Files\Unity\Editor\Data\PlaybackEngines\metrosupport\Tools\SerializationWeaver\SerializationWeaver.exe” “D:\ZUNITYPROJ\WinRTTest\UnityIOS\obj\Store 8.1\x86\Debug\x86\Debug\Assembly-CSharp.dll” -pdb -verbose -unity-engine=“D:\ZUNITYPROJ\TestCoco\UnityIOS\Unprocessed\UnityEngine.dll” “D:\ZUNITYPROJ\WinRTTest\UnityIOS\obj\Store 8.1\x86\Debug\x86\Debug”” exited with code 1.
It’s failing to find CocoConnections-5.0.dll. Is it present in your project?
Yes it is present in the project. And My project is using various methods of this dll. I made this dll in visual studio 2013.
What if you disable C# projects options, does it work then?
Yes it works like a charm. Without any error, Without any warning.
I think we had a similar bug, the fix was made for 5.1, because it was too complex for 5.0 patch.
So this a bug in unity. When 5.1 releasing .
No promises, but maybe at the begining of next month.
O.K and thanks Tomas for your support.