Each .NET Core component (SDK, Host and Shared Framework) is versioned independently.
You can find the version for each of them separately.
SDK
You can use the --version
option to dotnet
to see the SDK
version. For example:
$ ~/dotnet-1.1.1/dotnet --version
1.0.0-preview2-1-003176
dotnet --info
also shows the SDK version.
Host
You can run dotnet
by itself without any arguments or options to
see the version of the host.
$ ~/dotnet-1.1.1/dotnet
Microsoft .NET Core Shared Framework Host
Version : 1.1.0
Build : 362e48a95c86b40cd1f2ef3d08741f7fed897956
Usage: dotnet [common-options] [[options] path-to-application]
...
Shared Framework
There no command currently to display the avaialble shared
frameworks. I use ls /path/to/where/you/installed/dotnet/shared/Microsoft.NETCore.App
which relies on internal implementation details. For example:
$ ls ~/dotnet-1.1.1/shared/Microsoft.NETCore.App/
1.1.1