tag:help.appveyor.com,2012-11-13:/discussions/problems/3673-auto-detection-failedAppVeyor: Discussion 2018-10-19T08:17:37Ztag:help.appveyor.com,2012-11-13:Comment/385436792015-11-24T17:35:29Z2015-11-24T17:35:30ZAuto-detection Failed<div><p>I recently added a .gitignore file to my repo. After adding it
everything built fine, so I created a PR where all the files in the
now ignored directories are deleted. Now the build no longer
passes.</p>
<p>I have since added a pre-build command to retore nuget packages.
And in the settings->build given a direct path to my .sln.</p>
<p>Below is the error I am getting (names etc have been
removed).</p>
<p>Build started<br>
git clone -q --branch=remove-files <a href="mailto:git@github.com">git@github.com</a>:.git
C:\projects<project name><br>
git checkout -qf<br>
nuget restore<br>
MSBuild auto-detection: using msbuild version '14.0' from
'C:\Program Files (x86)\MSBuild\14.0\bin'.<br>
This folder contains no solution files, nor packages.config
files.<br>
Command exited with code 1</p>
<p>Any help would be greatly appreciated.</p>
<p>Thanks,<br>
Jake</p></div>jacob.bjorketag:help.appveyor.com,2012-11-13:Comment/385436792015-11-24T17:39:40Z2015-11-24T17:39:41ZAuto-detection Failed<div><p>When I clone the repo from GitHub and do a package restore on
the solution then build solution it works without a problem. I am
assuming its a problem in my configuration.</p></div>jacob.bjorketag:help.appveyor.com,2012-11-13:Comment/385436792015-11-24T18:25:13Z2015-11-24T18:25:13ZAuto-detection Failed<div><p>Use <code>nuget restore <path-to\solution.sln></code>
command instead.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/385436792015-11-24T19:46:43Z2015-11-24T19:46:43ZAuto-detection Failed<div><p>That did the trick. Thanks Feodor.</p></div>jacob.bjorke