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
Unless your application has specific reasons for earlier SDKs or runtimes, you may safely remove older versions.
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.
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.
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".
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With