// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; using Microsoft.DotNet.Cli.CommandLine; using Microsoft.DotNet.Cli.Utils; using System; using System.IO; using System.Linq; using Microsoft.Build.Construction; using Microsoft.DotNet.ProjectJsonMigration; using NuGet.Frameworks; using Microsoft.DotNet.Tools.Add.ProjectToProjectReference; namespace Microsoft.DotNet.Tools.Add { public class AddCommand : DispatchCommand { protected override string HelpText => @".NET Add Command Usage: dotnet add [options] [[--] ...]] Options: -h|--help Show help information Arguments: The object of the operation. If a project file is not specified, it defaults to the current directory. Command to be executed on . Args: Any extra arguments passed to the command. Use `dotnet add --help` to get help about these arguments. Commands: p2p Add project to project (p2p) reference to a project"; protected override Dictionary> BuiltInCommands => new Dictionary> { ["p2p"] = AddProjectToProjectReferenceCommand.Run, }; } }