Reputation: 3
Anyone knows why when I type dotnet --version
get 1.0.0-preview2-1-003177, but get 1.1.0 when type dotnet
?
Ian-MBP:C# Ian_Weng$ dotnet --version
1.0.0-preview2-1-003177
Ian-MBP:C# Ian_Weng$ dotnet
Microsoft .NET Core Shared Framework Host
Version : 1.1.0
Build : 928f77c4bc3f49d892459992fb6e1d5542cb5e86
Upvotes: 0
Views: 119
Reputation: 675
So it looks like when you run dotnet
, the "version" you are seeing is the version of something called the "Microsoft .NET Core Shared Framework Host", whereas when you run dotnet --version
or dotnet --info
, the "version" you are seeing is the version of something called the "Microsoft .NET Core SDK".
There is a GitHub issue in the .NET Core CLI repository discussing the less than ideal information architecture at play here. You can read through the issue to get some insight and/or add your own comments to let the developers know what you think.
Upvotes: 1