6

Im'm trying to upgrade my dotnet cli. I have installed in my Mac (OS El Capitan) from the official link.

But when I try to view the version with this code:

dotnet --version

My output:

1.0.0-preview2-003121

How can I upgrade?

GEOCHET
  • 21,119
  • 15
  • 74
  • 98
chemitaxis
  • 13,889
  • 17
  • 74
  • 125

3 Answers3

4

The version 1.0.0-preview2-003121 of the .Net CLI is currently the latest released version. So there is no newer released version to upgrade to.

You could upgrade to the latest build from the dotnet/cli repo, but you probably shouldn't, since that's not a released version.

svick
  • 236,525
  • 50
  • 385
  • 514
  • So does that mean you can not run a csproj core app on OS X yet? Only project.json based projects? – Ryan Mendoza Feb 10 '17 at 20:55
  • @RyanMendoza You can, if you install [RC4](https://github.com/dotnet/core/blob/master/release-notes/rc4-download.md) of the SDK, or the daily build. – svick Feb 11 '17 at 02:39
2

To update from 2.0.3 to 2.1.4 I simply downloaded the installer from Microsoft's website and then ran the installer.

`https://download.microsoft.com/download/1/1/5/115B762D-2B41-4AF3-9A63-92D9680B9409/dotnet-sdk-2.1.4-osx-gs-x64.pkg

I had a Terminal window open, and when I did a dotnet --version before and after running the installer, the correct version was output to the console. I did not have to restart my terminal window even.

benhorgen
  • 1,928
  • 1
  • 33
  • 38
0

Microsoft has done a good job at packaging the SDK and CLI together. See either their main dotnetcore website or go to their git

user2330898
  • 253
  • 2
  • 12