How to determine if .NET Core is installed

前端 未结 16 1843
难免孤独
难免孤独 2020-12-07 06:53

I know that for older versions of .NET, you can determine if a given version is installed by following

https://support.microsoft.com/en-us/kb/318785  
         


        
16条回答
  •  星月不相逢
    2020-12-07 07:32

    The following commands are available with .NET Core SDK 2.1 (v2.1.300):

    To list all installed .NET Core SDKs use: dotnet --list-sdks

    To list all installed .NET Core runtimes use dotnet --list-runtimes

    (tested on Windows as of writing, 03 Jun 2018, and again on 23 Aug 2018)

    Update as of 24 Oct 2018: Better option is probably now dotnet --info in a terminal or PowerShell window as already mentioned in other answers.

提交回复
热议问题