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