.NET Core 1.1 RTM was announced yesterday along with Visual Studio for Mac! So of course, I jumped right over to install them both. During the install of the 1.1 version of .NET Core from the downloads page, hit a snag on OSX.
If you have seen recent Scott Hanselman talk ASP.NET Core, there is a slide he uses where he references "How do you like your ASP.NET?"
I'm somewhere between "medium-rare" and "medium-well", depends on the machine I am using.
I had the preview bits installed which had a version of 1.0.0-preview2.1-003155 and now the RC 1.1 is released with version of 1.0.0-preview2-1-003177. When running the command dotnet --info I was getting the incorrect version even though I was using the proper installer (multiple times) but to no avail nothing was getting updated. Or at least I thought.
The issue here is that semver was taking over. The previous version number of 1.0.0-preview2.1-003155 is actually a higher version number than 1.0.0-preview2-1-003177. Why? Because 2.1 is higher than 2-1 in versioning.
The version was incorrect, I was looking for 1.0.0-preview2-1-003177.
There is a "Reset my dotnet" or uinstall for OSX and Linux in the cli Github Repo.
I didn't want to remove all of the versions, but looking at the script, it did give me the insight needed to know how to get rid of the one version.
pkgutil --pkgs | grep "com.microsoft.dotnet"
sudo pkgutil --force --forget "com.microsoft.dotnet.dev.1.0.0-preview2.1-003155.component.osx.x64"
sudo pkgutil --force --forget "com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.1.1.0-preview1-001100-00.component.osx.x64"
Close and restart any terminal / bash/ zsh shells and run dotnet --info to see that you are running the current version.