tag:help.appveyor.com,2012-11-13:/discussions/problems/2896-core-system-libraries-missing-build-errorAppVeyor: Discussion 2018-10-19T08:17:25Ztag:help.appveyor.com,2012-11-13:Comment/377593252015-08-26T06:25:16Z2015-08-26T06:25:16ZCore system libraries missing - build error<div><p>I understand this is frustrating, but unfortunately <code>Unable
to find version X of package Y</code> comes from nuget.org server
and usually means their index is broken or being propagated.</p>
<p>Could you please export your project configuration to YML please
(on project settings)? Want to try something.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377593252015-08-26T06:45:22Z2015-08-26T06:45:22ZCore system libraries missing - build error<div><p>Wow, apparently nuget.exe v3.1 which is installed on build
workers with VS 2015 always returns <code>0</code> exit code if
there are restore errors - making <code>nuget-restore.cmd</code>
useless.</p>
<p>I've filed a bug: <a href="https://github.com/NuGet/Home/issues/1259">https://github.com/NuGet/Home/issues/1259</a></p>
<p>You can replace nuget.exe with the previous 2.8.5 by adding this
PS line to your build script:</p>
<pre>
<code>(New-Object Net.WebClient).DownloadFile('https://www.nuget.org/nuget.exe', 'C:\Tools\NuGet\NuGet.exe')</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377593252015-08-26T08:43:52Z2015-08-31T03:22:21ZCore system libraries missing - build error<div><p>Hi Feodor, yes, downloading nuget.exe 2.8.5 fixed the build,
thank you.<br>
But does it mean, that my fork works in different environment and
it has working nuget.exe on the machine? Because it had not and
does not have such problems.<br>
Also, my building machine seems to be much slower than the master.
So, the machine environments can be different?</p></div>alexvgmltag:help.appveyor.com,2012-11-13:Comment/377593252015-08-26T08:45:38Z2015-08-26T08:45:38ZCore system libraries missing - build error<div><p>Could you please clarify what do you mean by "your" and "master"
building machines?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377593252015-08-26T08:59:31Z2015-08-31T03:22:21ZCore system libraries missing - build error<div><p>There are two git repositories: 1st, <a href="https://github.com/AlexZhidkov/BedfordHarbourBOM">https://github.com/AlexZhidkov/BedfordHarbourBOM</a><br>
and my fork,<br>
<a href="https://github.com/alexvdev/BedfordHarbourBOM">https://github.com/alexvdev/BedfordHarbourBOM</a></p>
<p>For each of them, there are two independent AppVeyor build
profiles,<br>
<a href="https://ci.appveyor.com/project/AlexZhidkov/bedfordharbourbom">https://ci.appveyor.com/project/AlexZhidkov/bedfordharbourbom</a><br>
and<br>
<a href="https://ci.appveyor.com/project/alexvdev/bedfordharbourbom">https://ci.appveyor.com/project/alexvdev/bedfordharbourbom</a></p>
<p>This I did to run all the build tests at my fork before merging
to the main repo.<br>
So, in my appveyor environment I had not the error.</p></div>alexvgmltag:help.appveyor.com,2012-11-13:Comment/377593252015-08-26T09:04:18Z2015-08-26T09:04:41ZCore system libraries missing - build error<div><p>Got it. <code>alexvdev</code> was running on Azure environment
(and there is no VS 2015 and NuGet 3.1 installed). I've just moved
it to the same environment as <code>AlexZhidkov</code>.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377593252015-08-26T09:10:49Z2015-08-31T03:22:21ZCore system libraries missing - build error<div><p>Thanks. Branches of one project should run in the same
conditions.<br>
Thank you for the quick response.</p></div>alexvgmltag:help.appveyor.com,2012-11-13:Comment/377593252015-08-31T02:42:50Z2015-08-31T03:22:21ZCore system libraries missing - build error<div><p>Hi Feodor,</p>
<p>"alexvdev was running on Azure environment (and there is no VS
2015 and NuGet 3.1 installed). I've just moved it to the same
environment as AlexZhidkov."</p>
<p>After this, nuget-restore is not recognisable:</p>
<p>"nuget-restore' is not recognized as an internal or external
command, operable program or batch file.<br>
Command exited with code 1"<br>
(see log_alexvdev.txt)</p>
<p>The yaml project settings (see appveyor_alexvdev.yml) are pretty
much similar to what are in AlexZhidkov, and it built before your
changes. Can you please configure nuget on the alexvdev branch?</p></div>alexvgmltag:help.appveyor.com,2012-11-13:Comment/377593252015-08-31T06:59:22Z2015-08-31T06:59:22ZCore system libraries missing - build error<div><p>nuget-restore.cmd does not depend on the build worker image - it
should be either downloaded during the build or added to your repo
(branch you are building). Look this for more <a>
details: http://www.appveyor.com/docs/nuget#restore-with-retries</a></p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377593252015-08-31T08:06:30Z2015-08-31T08:06:32ZCore system libraries missing - build error<div><p>Thanks. nuget-restore.cmd file was missing actually.</p></div>alexvgml