How to check the .net core version and uninstall and reinstall another

1

I need to install the version of .net core 2.0. I need to know which version to install and uninstall to install this one. How do I do this?

    
asked by anonymous 22.03.2018 / 22:18

1 answer

1

According to the doc link you can use the command line (CMD for example)

If it is version 1.x the supported arguments are:

dotnet [command] [arguments] [--additionalprobingpath] [-d|--diagnostics] [--fx-version]
    [-h|--help] [--info] [-v|--verbosity] [--version]

Version 2.x:

dotnet [command] [arguments] [--additional-deps] [--additionalprobingpath] [-d|--diagnostics]
    [--fx-version] [-h|--help] [--info] [--roll-forward-on-no-candidate-fx] [-v|--verbosity] [--version]

So I think that being version 1.x or 2.x you can use the command:

dotnet --version

Or:

dotnet --info

Version 1.x Command List

  • --additionalprobingpath <PATH>

    Path containing the research policy and assemblies to be investigated.

  • -d or --diagnostics

    Enable diagnostic output.

  • --fx-version <VERSION>

    The version of the .NET Core runtime installed to be used to run the application.

  • -h or --help

    Prints a brief help for the command. If it is dotnet, it will also print a list of available commands.

  • --info

    Prints detailed information about the CLI tools and environment, such as the current operating system, SHA for version confirmation, and other information.

  • -v or --verbose

    Enables detailed output.

  • --version

    Prints the version of the .NET Core SDK in use.

Version 2.x Command List

  • --additional-deps <PATH>

    Path to file deps.json additional.

  • --additionalprobingpath <PATH>

    Path containing the research policy and assemblies to be investigated.

  • -d or --diagnostics

    Enable diagnostic output.

  • --fx-version <VERSION>

    The version of the .NET Core runtime installed to be used to run the application.

  • -h or --help

    Prints a brief help for the command. If it is dotnet, it will also print a list of available commands.

  • --info

    Prints detailed information about the CLI tools and environment, such as the current operating system, SHA for version confirmation, and other information.

  • --roll-forward-on-no-candidate-fx

    Roll forward on any candidate shared structures.

  • -v or --verbose

    Enables detailed output.

  • --version

    Prints the version of the .NET Core SDK in use.

22.03.2018 / 22:25