How to determine if .NET Core is installed

前端 未结 16 1798
难免孤独
难免孤独 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:20

    It doesn't need a installation process.

    I have pinned "VSCore" on my taskbar (win10), so open it, and open a task manager choose "Visual Studio Core" process expand left arrow and over any of them child process right button over it and click in "Open File Location" menu.

    If you don't remember where is installed search "Code.exe" file in all your hard drives.

    0 讨论(0)
  • 2020-12-07 07:23

    After all the other answers, this might prove useful.

    Open your application in Visual Studio. In Solutions Explorer, right click your project. Click Properties. Click Application. Under "Target Framework" click the dropdown button and there you are, all of the installed frameworks.

    BTW - you may now choose which framework you want.

    0 讨论(0)
  • 2020-12-07 07:24

    Look in C:\Program Files\dotnet\shared\Microsoft.NETCore.App to see which versions of the runtime have directories there. Source.

    A lot of the answers here confuse the SDK with the Runtime, which are different.

    0 讨论(0)
  • 2020-12-07 07:25

    You can check if dotnet.exe is available:

    where dotnet

    You can then check the version:

    dotnet --version

    UPDATE: There is now a better way of doing this, which is well explained in many other answers:

    dotnet --info

    0 讨论(0)
  • 2020-12-07 07:26

    Run this command

    dotnet --list-sdks
    

    0 讨论(0)
  • 2020-12-07 07:31

    (1) If you are on the Window system.

    Open the command prompt.

     dotnet --version
    

    (2) Run the below command If you are on Linux system.

    dotnet --version
    
    dotnet --info
    
    0 讨论(0)
提交回复
热议问题