tag:help.appveyor.com,2012-11-13:/discussions/problems/478-build-fails-when-it-hits-unit-tests-projectAppVeyor: Discussion 2018-10-19T08:16:37Ztag:help.appveyor.com,2012-11-13:Comment/335636332014-06-27T10:00:04Z2014-06-27T10:00:04ZBuild fails when it hits unit tests project.<div><p>Hi James,</p>
<p>There is an error message: <a href=
"https://ci.appveyor.com/project/JamesSouth/imageprocessor/build/1.0.5/messages">
https://ci.appveyor.com/project/JamesSouth/imageprocessor/build/1.0...</a></p>
<p>which leads to <a href=
"http://blogs.msdn.com/b/dotnet/archive/2013/08/12/improved-package-restore.aspx">
http://blogs.msdn.com/b/dotnet/archive/2013/08/12/improved-package-...</a>.
This is well-known "chicken-egg" problem with Microsoft.Bcl package
(<a href=
"https://github.com/JimBobSquarePants/ImageProcessor/blob/V2/src/TestWebsites/NET4/packages.config">https://github.com/JimBobSquarePants/ImageProcessor/blob/V2/src/Tes...</a>).</p>
<p>To fix that use command-line nuget restore before running
msbuild. Put that into "Before build" on Build tab of project
settings:</p>
<pre>
<code>nuget restore src\ImageProcessor.sln</code>
</pre>
<p>Let me know how that works.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/335636332014-06-27T14:23:45Z2015-08-22T08:04:28ZBuild fails when it hits unit tests project.<div><p>Ah brilliant! Works a treat. Thank you :)</p></div>james_south