Clean up before PR
This commit is contained in:
parent
0f6e4e3f10
commit
303a267a01
2 changed files with 13 additions and 12 deletions
|
@ -22,5 +22,14 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
|
|||
public const string CmdVersionDescription = "Version for the package to be added.";
|
||||
|
||||
public const string CmdDGFileException = "Unable to Create Dependency graph file for project '{0}'. Cannot add package reference.";
|
||||
|
||||
public const string CmdVersion = "VERSION";
|
||||
|
||||
public const string CmdFramework = "FRAMEWORK";
|
||||
|
||||
public const string CmdSource = "SOURCE";
|
||||
|
||||
public const string CmdPackageDirectory = "PACKAGE_DIRECTORY";
|
||||
|
||||
}
|
||||
}
|
|
@ -40,12 +40,12 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
|
|||
command.HelpOption("-h|--help");
|
||||
|
||||
command._versionOption = command.Option(
|
||||
"-v|--version",
|
||||
$"-v|--version <{LocalizableStrings.CmdVersion}>",
|
||||
LocalizableStrings.CmdVersionDescription,
|
||||
CommandOptionType.SingleValue);
|
||||
|
||||
command._frameworkOption = command.Option(
|
||||
$"-f|--framework <{CommonLocalizableStrings.CmdFramework}>",
|
||||
$"-f|--framework <{LocalizableStrings.CmdFramework}>",
|
||||
LocalizableStrings.CmdFrameworkDescription,
|
||||
CommandOptionType.SingleValue);
|
||||
|
||||
|
@ -55,12 +55,12 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
|
|||
CommandOptionType.NoValue);
|
||||
|
||||
command._sourceOption = command.Option(
|
||||
"-s|--source ",
|
||||
$"-s|--source <{LocalizableStrings.CmdSource}>",
|
||||
LocalizableStrings.CmdSourceDescription,
|
||||
CommandOptionType.SingleValue);
|
||||
|
||||
command._packageDirectoryOption = command.Option(
|
||||
"--package-directory",
|
||||
$"--package-directory <{LocalizableStrings.CmdPackageDirectory}>",
|
||||
LocalizableStrings.CmdPackageDirectoryDescription,
|
||||
CommandOptionType.SingleValue);
|
||||
|
||||
|
@ -69,14 +69,6 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
|
|||
|
||||
public override int Run(string fileOrDirectory)
|
||||
{
|
||||
Console.WriteLine("Waiting for debugger to attach.");
|
||||
Console.WriteLine($"Process ID: {Process.GetCurrentProcess().Id}");
|
||||
|
||||
while (!Debugger.IsAttached)
|
||||
{
|
||||
System.Threading.Thread.Sleep(100);
|
||||
}
|
||||
Debugger.Break();
|
||||
var projects = new ProjectCollection();
|
||||
var msbuildProj = MsbuildProject.FromFileOrDirectory(projects, fileOrDirectory);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue