Fixing argument parsing in add package command (#5421)

* Fixing argument parsing in add package command

* Adding check to throw if extra args were passed

* Removing string and adding test cases for dotnet add package command

* Add new test to test.sln, and fix naming, and clean csproj
This commit is contained in:
Piotr Puszkiewicz 2017-01-21 00:11:18 -08:00 committed by GitHub
parent 8ac7312fa3
commit 04a7fca9fc
7 changed files with 179 additions and 11 deletions

View file

@ -9,7 +9,7 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
public const string AppDescription = "Command to add package reference";
public const string AppHelpText = "Package references to add";
public const string CmdPackageDescription = "Package references to add";
public const string SpecifyExactlyOnePackageReference = "Please specify one package reference to add.";
@ -25,6 +25,8 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
public const string CmdDGFileException = "Unable to Create Dependency graph file for project '{0}'. Cannot add package reference.";
public const string CmdPackage = "PACKAGE_NAME";
public const string CmdVersion = "VERSION";
public const string CmdFramework = "FRAMEWORK";