Skip to content

Conversation

@chuckries
Copy link
Contributor

@chuckries chuckries commented Aug 25, 2016

Implement a version check of the dotnet cli tools on the path. Give a good error message if the tools are too old.

// succesfully spawned 'dotnet --info', check the Version
if (semver.lt(dotnetInfo.Version, MINIMUM_SUPPORTED_DOTNET_CLI))
{
let message = 'The .NET CLI tools on the path are too old. .NET Core debugging will ont be enabled. The minimum supported version is ' + MINIMUM_SUPPORTED_DOTNET_CLI + '. ';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo.

@chuckries
Copy link
Contributor Author

This does a version check at the time we verify dotnet is on the path by
running dotnet --info. We use semver to compare the cli version to a hard
coded minimum cli version. If the check fails we use the same UI we
already had for "dotnet not on path" with a different message.
@wesrupert
Copy link
Contributor

LGTM! :shipit:

@gregg-miskelly
Copy link
Contributor

LGTM

@chuckries
Copy link
Contributor Author

Fixes #618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants