Build fails when it hits unit tests project.

james_south's Avatar

james_south

26 Jun, 2014 10:10 PM

My build is failing as soon as it hits my unit test project with "Command exited with code 1"

Everything runs perfectly on local machines in two locations so I'm not sure what is wrong. Any ideas?

https://ci.appveyor.com/project/JamesSouth/imageprocessor

  1. Support Staff 1 Posted by Feodor Fitsner on 27 Jun, 2014 10:00 AM

    Feodor Fitsner's Avatar

    Hi James,

    There is an error message: https://ci.appveyor.com/project/JamesSouth/imageprocessor/build/1.0...

    which leads to http://blogs.msdn.com/b/dotnet/archive/2013/08/12/improved-package-.... This is well-known "chicken-egg" problem with Microsoft.Bcl package (https://github.com/JimBobSquarePants/ImageProcessor/blob/V2/src/Tes...).

    To fix that use command-line nuget restore before running msbuild. Put that into "Before build" on Build tab of project settings:

    nuget restore src\ImageProcessor.sln
    

    Let me know how that works.

  2. 2 Posted by james_south on 27 Jun, 2014 02:23 PM

    james_south's Avatar

    Ah brilliant! Works a treat. Thank you :)

  3. james_south closed this discussion on 22 Aug, 2015 08:19 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac