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