3 types derived from RestoringCommand
dotnet (3)
Commands\Pack\PackCommand.cs (1)
23
) :
RestoringCommand
(msbuildArgs, noRestore, msbuildPath: msbuildPath)
Commands\Publish\PublishCommand.cs (1)
12
public class PublishCommand :
RestoringCommand
Commands\Test\VSTest\TestCommand.cs (1)
19
string? msbuildPath = null) :
RestoringCommand
(msbuildArgs, noRestore, msbuildPath)
3 instantiations of RestoringCommand
dotnet (3)
Commands\Build\BuildCommand.cs (1)
40
(msbuildArgs, msbuildPath) => new
RestoringCommand
(
Commands\Run\RunCommand.cs (1)
321
buildResult = new
RestoringCommand
(
Commands\Test\MTP\MSBuildUtility.cs (1)
128
int result = new
RestoringCommand
(parsedMSBuildArgs, buildOptions.HasNoRestore).Execute();
28 references to RestoringCommand
dotnet (1)
Commands\Run\VirtualProjectBuildingCommand.cs (1)
403
foreach (var (key, value) in
RestoringCommand
.RestoreOptimizationProperties)
dotnet.Tests (27)
CommandTests\MSBuild\GivenDotnetBuildInvocation.cs (8)
13
public static string[] RestoreExpectedPrefixForImplicitRestore = [..
RestoringCommand
.RestoreOptimizationProperties.Select(kvp => $"--restoreProperty:{kvp.Key}={kvp.Value}")];
14
public static string[] RestoreExpectedPrefixForSeparateRestore = [..
RestoringCommand
.RestoreOptimizationProperties.Select(kvp => $"--property:{kvp.Key}={kvp.Value}")];
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 (14)
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);
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 (3)
35
RestoringCommand
command = buildCommand ?
36
(
RestoringCommand
)BuildCommand.FromArgs(arguments) :
37
(
RestoringCommand
)PublishCommand.FromArgs(arguments);
ParserTests\ResponseFileTests.cs (2)
31
var
bc = (
RestoringCommand
)Cli.Commands.Build.BuildCommand.FromParseResult(parseResult);