Search Unity

Debugging c# projects of Win Store Apps throws an error.

Discussion in 'Windows' started by akkiDev, May 1, 2015.

  1. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    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 :
    UnityError.png

    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
    http://forum.unity3d.com/threads/rc...project-checked-error-unchecked-works.299464/
    but nothing got to resolve my problem.
     
    Last edited: May 1, 2015
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    Check if Assembly-CSharp.dll was compiled succesfully
     
  3. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    Thanks tomas for reply, how to check that.
     
  4. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    I also get warnings :::
    errors.png
     
    Last edited: May 1, 2015
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    Which architecture are you using?

    Regarding Assembly-CSharp, right click on it, and click Build, and see if it will be succesful.
     
  6. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    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.
     
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    Architecture means X86, ARM or X64, right click on Assembly-CSharp project in the solution explorer, and hit build. Sorry for not being clear.
     
  8. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    My architecture is x86, and there are 3 projects in the solution.
    12345.png
    First one builds successfully. But second and third gives the above error.
     
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    The second is Assembly-CSharp-metro, right? What's the error there?
     
  10. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    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 :::



     
  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    I think, this doesn't show everything, try switching to Output window.
     
  12. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    Here is my output window :

    output.png

    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.
     
    Last edited: May 4, 2015
  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    It's failing to find CocoConnections-5.0.dll. Is it present in your project?
     
  14. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    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.
     
  15. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    What if you disable C# projects options, does it work then?
     
  16. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    Yes it works like a charm. Without any error, Without any warning.
     
  17. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    I think we had a similar bug, the fix was made for 5.1, because it was too complex for 5.0 patch.
     
  18. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    So this a bug in unity. When 5.1 releasing .
     
  19. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    No promises, but maybe at the begining of next month.
     
  20. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    O.K and thanks Tomas for your support.