tag:help.appveyor.com,2012-11-13:/discussions/questions/3268-how-to-install-latest-net-core-sdkAppVeyor: Discussion 2018-10-19T08:18:13Ztag:help.appveyor.com,2012-11-13:Comment/419863052017-02-19T09:52:55Z2017-02-19T09:52:59ZHow to install latest .NET Core SDK<div><p>It seems that the download doesn't really happen, because it
runs in less than a second which is impossible.</p></div>Dustin Moris Gorskitag:help.appveyor.com,2012-11-13:Comment/419863052017-02-19T19:21:11Z2017-02-19T19:21:11ZHow to install latest .NET Core SDK<div><p>I've noticed you managed to fix that already?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/419863052017-02-20T10:28:17Z2017-02-20T10:28:19ZHow to install latest .NET Core SDK<div><p>Yes I found an example which worked, but I still don't
understand why this didn't download the SDK before:<br>
<a href="https://github.com/dustinmoris/AspNetCore.Lambda/blob/30aecaf97971a86c42d1fb7a7132b124664602cc/appveyor.ps1#L8">
https://github.com/dustinmoris/AspNetCore.Lambda/blob/30aecaf97971a...</a></p>
<p>It didn't download anything, because the command ran so quickly
that it could have never downloaded a 100MB file in a few
milliseconds. Do you know why so at least I know for the future
when I am facing a similar problem?</p></div>Dustin Moris Gorskitag:help.appveyor.com,2012-11-13:Comment/419863052017-02-20T17:47:16Z2017-02-20T17:47:16ZHow to install latest .NET Core SDK<div><p>I've just checked that downloading line and it worked: <a href="https://ci.appveyor.com/project/FeodorFitsner/simple-console/build/1.0.2604#L7">
https://ci.appveyor.com/project/FeodorFitsner/simple-console/build/...</a></p>
<p>If you mean the failed build here then I believe it's because of
new line issue, i.e. those three statements are on the same
line.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/419863052017-02-20T17:54:31Z2017-02-20T17:54:32ZHow to install latest .NET Core SDK<div><p>Hmm yeah I can see that the linked build had all 3 commands on
one new line. Not sure what this happened, but in those builds:</p>
<p><a href="https://ci.appveyor.com/project/dustinmoris/aspnetcore-lambda/build/0.1.0-alpha003-68">
https://ci.appveyor.com/project/dustinmoris/aspnetcore-lambda/build...</a><br>
<a href="https://ci.appveyor.com/project/dustinmoris/aspnetcore-lambda/build/0.1.0-alpha003-66">
https://ci.appveyor.com/project/dustinmoris/aspnetcore-lambda/build...</a></p>
<p>You can see that the commands were not in one line, but the
installation step failed because it couldn't find the downloaded
file. Unfortunately we don't see the time of each command, but the
command which failed was run immediately after the download
command, which is why it couldn't find the file, because it
probably didn't exist at that point yet.</p></div>Dustin Moris Gorskitag:help.appveyor.com,2012-11-13:Comment/419863052017-02-20T17:57:36Z2017-02-20T17:57:36ZHow to install latest .NET Core SDK<div><p>Yes, because <code>(New-Object
System.Net.WebClient).DownloadFile('https://go.microsoft.com/fwlink/?linkid=841686','dotnet-core-sdk.exe')</code>
command does not save to the current directory. To save the file to
the root of build directory use this command instead:</p>
<pre>
<code>(New-Object System.Net.WebClient).DownloadFile('https://go.microsoft.com/fwlink/?linkid=841686', "$env:appveyor_build_folder\dotnet-core-sdk.exe")</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/419863052017-02-20T17:59:00Z2017-02-20T17:59:02ZHow to install latest .NET Core SDK<div><p>Ah okay, that was my mistake. That makes sense and that's what I
wanted to know in case I have to do something similar the next
time. Thank you for the help!</p></div>Dustin Moris Gorski