Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to download previous version of .net core sdk?

Tags:

.net-core

We have a project that uses .net core sdk 1.0.0-preview2-003121.

Currently, I'm setting up a CI server to do automatic builds. In the server, I'm getting this error because the .net core sdk that is installed is not the same as the one in the project.

ERROR

preview2-003121 which is not installed or cannot be found under the path C:\Program Files\dotnet.

I did a command line check dotnet --version and it gave me 1.0.0-preview2-003131

Where can I download older versions of the .net core sdk? I have tried the following links and they give me the latest version for the download

  • https://github.com/dotnet/cli
  • https://www.microsoft.com/net/core#windows
like image 799
jmc Avatar asked Nov 10 '16 07:11

jmc


People also ask

Can I remove older versions of .NET Core SDK?

Unless your application has specific reasons for earlier SDKs or runtimes, you may safely remove older versions.

Is .NET Core SDK backward compatible?

In summary, the . NET Core SDK is backwards compatible and the newest one on the box is used unless there is a global. json file that indicates another version of the SDK. So, the short answer is: * You need the one you want to run (latest suggested and previews should be fine) * And, any that are specified in global.

How do I change .NET SDK version?

Change Default DotNet SDK Version using global. json file in the current folder or any parent folder with the contents below. You can create the global. json file manually, or use the dotnet cli command dotnet new globaljson . Now dotnet core sdk version is reverted back in the folder which global.

Where is .NET Core SDK installed?

NET Core is that it installs . NET Core SDKs separately, so the new SDK does not affect the previously installed SDK. You can see all the installed SDKs under "C:\Program Files\dotnet\sdk".


1 Answers

This article explains how to install the correct .net core version. HTH. http://blog.stephencleary.com/2016/06/dotnet-netcore-versions.html

I was able to just get away with following

  1. download https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/1.0.0-preview2-003121/dotnet-dev-win-x64.1.0.0-preview2-003121.zip
  2. copy 1.0.0-preview2-003121 directory inside dotnet-dev-win-x64.1.0.0-preview2-003121.zip\sdk
  3. paste in C:\Program Files\dotnet\sdk

Note: I had newer sdk version already installed(1.0.0-preview2-1-003177)

---Update---

Official download location is https://github.com/dotnet/core/blob/master/release-notes/download-archive.md as mentioned by vinicius-paiva and manoj-attal.

like image 125
rawel Avatar answered Sep 18 '22 09:09

rawel