tag:help.appveyor.com,2012-11-13:/discussions/problems/6324-aspnet-core-builds-now-failingAppVeyor: Discussion 2018-10-19T08:18:16Ztag:help.appveyor.com,2012-11-13:Comment/422054982017-03-21T22:28:14Z2017-09-13T20:21:27ZASP.NET Core builds now failing<div><p>Hi Joe,</p>
<p>Correct, we have installed .NET Core SDK 1.0.1 on build worker though previous SDKs are, of course, still there. Multiple SDKs can work side-by-side, please see this issue for explanation and solution: <a href="https://github.com/appveyor/ci/issues/1377#issuecomment-287644271">https://github.com/appveyor/ci/issues/1377#issuecomment-287644271</a></p>
<p>In short, add <code>global.json</code> to the root of your repo with the following contents:</p>
<pre>
<code>{
"sdk": {
"version": "1.0.0-preview2-1-003177"
}
}</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/422054982017-03-23T04:16:57Z2017-09-13T20:21:27ZASP.NET Core builds now failing<div><p>I also faced this problem and Feodor suggestion helped me resolve the issue but one detail I wanted to share: I have my Cake build script in my project's root folder and my source files (including my .sln) in a subfolder called <code>source</code>. In the <a href="https://github.com/appveyor/ci/issues/1377#issuecomment-287644271">GitHub issue</a> referenced above, Feodor says:</p>
<blockquote>
<p>Add global.json file to the folder with your .sln file</p>
</blockquote>
<p>However, in my case that did not work. I had to move the global.json to my project's root folder.</p>
<p>Hope it's helpful.</p></div>desautelsjtag:help.appveyor.com,2012-11-13:Comment/422054982017-03-23T04:20:59Z2017-09-13T20:21:27ZASP.NET Core builds now failing<div><p>Yeah, thanks for your note. When <code>dotnet</code> command line tool is running it's looking for <code>global.json</code> in the current directory. By default, build scripts run in repo root folder, so <code>global.json</code> should be there as well.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/422054982017-03-23T04:36:36Z2017-09-13T20:21:27ZASP.NET Core builds now failing<div><p>One more detail, the most recent 1.0.0 SDK on the "Visual Studio 2015 AppVeyor image is:</p>
<pre>
<code>{
"sdk": {
"version": "1.0.0-preview2-003156"
}
}</code>
</pre></div>desautelsjtag:help.appveyor.com,2012-11-13:Comment/422054982017-03-23T04:39:35Z2017-09-13T20:21:27ZASP.NET Core builds now failing<div><p>There is <code>1.0.0-preview2-1-003177</code> also available.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/422054982017-03-23T04:40:46Z2017-09-13T20:21:27ZASP.NET Core builds now failing<div><p>oups you're right, 3177 is indeed more recent than 3156. Sorry for the confusion.</p></div>desautelsjtag:help.appveyor.com,2012-11-13:Comment/422054982017-03-23T08:05:03Z2017-09-13T20:21:27ZASP.NET Core builds now failing<div><p>Thank you both for your help. I've popped the global.json in the root of my<br>
project and everything's working as expected.</p>
<p>Thanks again.</p></div>Joseph Ellistag:help.appveyor.com,2012-11-13:Comment/422054982017-03-23T08:43:56Z2017-09-13T20:21:27ZASP.NET Core builds now failing<div><p>Thanks for your help guys! I put the global.json file in the root of my project and everything is working as expected.</p></div>Joe