From f87d1d0cb129e4e03c8e29d5601dff4c6d8a963b Mon Sep 17 00:00:00 2001 From: Giovanni Bassi Date: Tue, 13 Sep 2016 20:02:04 -0300 Subject: [PATCH] Fix bug when specifying version --- src/dotnet-commands/Program.cs | 2 +- src/dotnet-commands/project.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dotnet-commands/Program.cs b/src/dotnet-commands/Program.cs index 6394e6e..21e5b1f 100644 --- a/src/dotnet-commands/Program.cs +++ b/src/dotnet-commands/Program.cs @@ -76,7 +76,7 @@ dotnet commands --version command = commandParts[0]; try { - packageVersion = NuGet.Versioning.SemanticVersion.Parse(commandParts[0]); + packageVersion = NuGet.Versioning.SemanticVersion.Parse(commandParts[1]); } catch (ArgumentException) { diff --git a/src/dotnet-commands/project.json b/src/dotnet-commands/project.json index b11fadf..d3b309d 100644 --- a/src/dotnet-commands/project.json +++ b/src/dotnet-commands/project.json @@ -1,5 +1,5 @@ { - "version": "0.5.1", + "version": "0.5.2", "description": "A .NET CLI Commands library.", "dependencies": { "Microsoft.NETCore.App": {