18 references to BuildCommand
dotnet (1)
Commands\Build\BuildCommandParser.cs (1)
100command.SetAction(BuildCommand.Run);
dotnet.Tests (17)
CommandTests\MSBuild\GivenDotnetBuildInvocation.cs (4)
5using BuildCommand = Microsoft.DotNet.Cli.Commands.Build.BuildCommand; 51var command = (RestoringCommand)BuildCommand.FromArgs(args, msbuildPath); 66var command = (RestoringCommand)BuildCommand.FromArgs(new[] { "--no-restore" }, msbuildPath); 111var command = (RestoringCommand)BuildCommand.FromArgs(args, msbuildPath);
CommandTests\MSBuild\GivenDotnetOsArchOptions.cs (10)
7using BuildCommand = Microsoft.DotNet.Cli.Commands.Build.BuildCommand; 28var command = (RestoringCommand)BuildCommand.FromArgs(["--os", "os"], msbuildPath); 42var command = (RestoringCommand)BuildCommand.FromArgs(["--arch", "arch"], msbuildPath); 64var command = (RestoringCommand)BuildCommand.FromArgs(["--arch", "arch", "--os", "os"], msbuildPath); 76var command = (RestoringCommand)BuildCommand.FromArgs(["--arch", "arch", "--os", "os", "--self-contained"], msbuildPath); 95var exceptionThrown = Assert.Throws<GracefulException>(() => BuildCommand.FromArgs(["--os", "os", "--runtime", "rid"], msbuildPath)); 106var exceptionThrown = Assert.Throws<GracefulException>(() => BuildCommand.FromArgs(["--arch", "arch", "--runtime", "rid"], msbuildPath)); 151var command = (RestoringCommand)BuildCommand.FromArgs(["--arch", "amd64", "--os", "os"], msbuildPath); 167var command = (RestoringCommand)BuildCommand.FromArgs(["--os", "os"], msbuildPath); 186var command = (RestoringCommand)BuildCommand.FromArgs(["--arch", "arch"], msbuildPath);
CommandTests\MSBuild\MSBuildArgumentCommandLineParserTests.cs (2)
10using BuildCommand = Microsoft.DotNet.Cli.Commands.Build.BuildCommand; 36(RestoringCommand)BuildCommand.FromArgs(arguments) :
ParserTests\ResponseFileTests.cs (1)
31var bc = (RestoringCommand)Cli.Commands.Build.BuildCommand.FromParseResult(parseResult);