141 references to CommonOptions
dotnet-aot (10)
parent\dotnet\Commands\MSBuild\MSBuildForwardingApp.cs (5)
77
MSBuildArgs.AnalyzeMSBuildArguments(rawMSBuildArgs.ToArray(),
CommonOptions
.CreatePropertyOption(),
CommonOptions
.CreateRestorePropertyOption(),
CommonOptions
.CreateMSBuildTargetOption(),
CommonOptions
.CreateVerbosityOption(),
CommonOptions
.CreateNoLogoOption()),
parent\dotnet\Telemetry\TelemetryFilter.cs (5)
119
optionsToLog: [
CommonOptions
.FrameworkOptionName, TargetPlatformOptions.RuntimeOptionName,
CommonOptions
.ConfigurationOptionName ]
124
optionsToLog: [
CommonOptions
.FrameworkOptionName,
CommonOptions
.ConfigurationOptionName]
129
optionsToLog: [
CommonOptions
.ConfigurationOptionName]
dotnet-watch (2)
CommandLine\CommandLineOptions.cs (1)
82
var buildOptions = command.Options.Where(o => o.ForwardingFunction is not null && o.Name !=
CommonOptions
.FrameworkOptionName);
CommandLine\DotnetWatchCommandDefinition.cs (1)
23
public readonly Option<string?> FrameworkOption = new(
CommonOptions
.FrameworkOptionName, "-f")
Microsoft.DotNet.Cli.Definitions (129)
Commands\Build\BuildCommandDefinition.cs (16)
40
public readonly Option<bool> NoLogoOption =
CommonOptions
.CreateNoLogoOption();
42
public readonly Option<bool> NoRestoreOption =
CommonOptions
.CreateNoRestoreOption();
44
public readonly Option<bool> SelfContainedOption =
CommonOptions
.CreateSelfContainedOption();
46
public readonly Option<bool> NoSelfContainedOption =
CommonOptions
.CreateNoSelfContainedOption();
50
public readonly Option<string> FrameworkOption =
CommonOptions
.CreateFrameworkOption(CommandDefinitionStrings.BuildFrameworkOptionDescription);
52
public readonly Option<string?> ConfigurationOption =
CommonOptions
.CreateConfigurationOption(CommandDefinitionStrings.BuildConfigurationOptionDescription);
57
public readonly Option<string[]?> TargetOption =
CommonOptions
.CreateMSBuildTargetOption();
59
public readonly Option<Utils.VerbosityOptions?> VerbosityOption =
CommonOptions
.CreateVerbosityOption();
61
public readonly Option<string> VersionSuffixOption =
CommonOptions
.CreateVersionSuffixOption();
62
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveMsBuildForwardOption();
63
public readonly Option<string> ArtifactsPathOption =
CommonOptions
.CreateArtifactsPathOption();
64
public readonly Option<bool> DisableBuildServersOption =
CommonOptions
.CreateDisableBuildServersOption();
65
public readonly Option<string[]?> GetPropertyOption =
CommonOptions
.CreateGetPropertyOption();
66
public readonly Option<string[]?> GetItemOption =
CommonOptions
.CreateGetItemOption();
67
public readonly Option<string[]?> GetTargetResultOption =
CommonOptions
.CreateGetTargetResultOption();
68
public readonly Option<string[]?> GetResultOutputFileOption =
CommonOptions
.CreateGetResultOutputFileOption();
Commands\Clean\CleanCommandDefinition.cs (12)
27
public readonly Option<bool> NoLogoOption =
CommonOptions
.CreateNoLogoOption();
29
public readonly Option<string> FrameworkOption =
CommonOptions
.CreateFrameworkOption(CommandDefinitionStrings.CleanFrameworkOptionDescription);
31
public readonly Option<string?> ConfigurationOption =
CommonOptions
.CreateConfigurationOption(CommandDefinitionStrings.CleanConfigurationOptionDescription);
35
public readonly Option<Utils.VerbosityOptions> VerbosityOption =
CommonOptions
.CreateVerbosityOption(Utils.VerbosityOptions.normal);
38
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveMsBuildForwardOption();
39
public readonly Option<string> ArtifactsPathOption =
CommonOptions
.CreateArtifactsPathOption();
40
public readonly Option<bool> DisableBuildServersOption =
CommonOptions
.CreateDisableBuildServersOption();
41
public readonly Option<string[]?> GetPropertyOption =
CommonOptions
.CreateGetPropertyOption();
42
public readonly Option<string[]?> GetItemOption =
CommonOptions
.CreateGetItemOption();
43
public readonly Option<string[]?> GetTargetResultOption =
CommonOptions
.CreateGetTargetResultOption();
44
public readonly Option<string[]?> GetResultOutputFileOption =
CommonOptions
.CreateGetResultOutputFileOption();
73
=>
CommonOptions
.CreateRequiredMSBuildTargetOption("Clean");
Commands\DotNetCommandDefinition.cs (1)
49
public readonly Option<bool> DiagOption =
CommonOptions
.CreateDiagnosticsOption(recursive: false);
Commands\MSBuild\MSBuildCommandDefinition.cs (2)
14
public readonly Option<string[]?> TargetOption =
CommonOptions
.CreateMSBuildTargetOption();
15
public readonly Option<bool> DisableBuildServersOption =
CommonOptions
.CreateDisableBuildServersOption();
Commands\New\NewCommandDefinition.cs (1)
42
CommonOptions
Commands\NuGet\NuGetCommandDefinition.cs (5)
76
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveOption();
162
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveOption();
209
public readonly Option<VerbosityOptions> VerbosityOption =
CommonOptions
.CreateVerbosityOption(Utils.VerbosityOptions.normal);
233
public readonly Option<VerbosityOptions> VerbosityOption =
CommonOptions
.CreateVerbosityOption(VerbosityOptions.normal);
379
public readonly Option<VerbosityOptions> VerbosityOption =
CommonOptions
.CreateVerbosityOption(Utils.VerbosityOptions.normal);
Commands\Pack\PackCommandDefinition.cs (13)
60
public readonly Option<bool> NoLogoOption =
CommonOptions
.CreateNoLogoOption();
62
public readonly Option<bool> NoRestoreOption =
CommonOptions
.CreateNoRestoreOption();
64
public readonly Option<string?> ConfigurationOption =
CommonOptions
.CreateConfigurationOption(CommandDefinitionStrings.PackConfigurationOptionDescription);
68
public readonly Option<Utils.VerbosityOptions?> VerbosityOption =
CommonOptions
.CreateVerbosityOption();
70
public readonly Option<string> ArtifactsPathOption =
CommonOptions
.CreateArtifactsPathOption();
71
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveMsBuildForwardOption();
72
public readonly Option<string> VersionSuffixOption =
CommonOptions
.CreateVersionSuffixOption();
73
public readonly Option<bool> DisableBuildServersOption =
CommonOptions
.CreateDisableBuildServersOption();
74
public readonly Option<string[]?> GetPropertyOption =
CommonOptions
.CreateGetPropertyOption();
75
public readonly Option<string[]?> GetItemOption =
CommonOptions
.CreateGetItemOption();
76
public readonly Option<string[]?> GetTargetResultOption =
CommonOptions
.CreateGetTargetResultOption();
77
public readonly Option<string[]?> GetResultOutputFileOption =
CommonOptions
.CreateGetResultOutputFileOption();
133
=>
CommonOptions
.CreateRequiredMSBuildTargetOption("Pack", [("_IsPacking", "true")]);
Commands\Package\PackageAddCommandDefinition.cs (1)
57
public static Option<bool> CreateInteractiveOption() =>
CommonOptions
.CreateInteractiveOption().ForwardIfEnabled("--interactive");
Commands\Package\PackageListCommandDefinition.cs (1)
81
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveOption().ForwardIfEnabled("--interactive");
Commands\Package\PackageRemoveCommandDefinition.cs (1)
32
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveOption().ForwardIfEnabled("--interactive");
Commands\Package\PackageSearchCommandDefinition.cs (1)
45
public readonly Option<bool> Interactive =
CommonOptions
.CreateInteractiveOption().ForwardIfEnabled("--interactive");
Commands\Project\ProjectConvertCommandDefinition.cs (1)
29
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveOption(acceptArgument: true);
Commands\Publish\PublishCommandDefinition.cs (16)
41
public readonly Option<bool> NoLogoOption =
CommonOptions
.CreateNoLogoOption();
43
public readonly Option<bool> NoRestoreOption =
CommonOptions
.CreateNoRestoreOption();
45
public readonly Option<bool> SelfContainedOption =
CommonOptions
.CreateSelfContainedOption();
47
public readonly Option<bool> NoSelfContainedOption =
CommonOptions
.CreateNoSelfContainedOption();
51
public readonly Option<string> FrameworkOption =
CommonOptions
.CreateFrameworkOption(CommandDefinitionStrings.PublishFrameworkOptionDescription);
53
public readonly Option<string?> ConfigurationOption =
CommonOptions
.CreateConfigurationOption(CommandDefinitionStrings.PublishConfigurationOptionDescription);
56
public readonly Option<Utils.VerbosityOptions?> VerbosityOption =
CommonOptions
.CreateVerbosityOption();
59
public readonly Option<string> ArtifactsPathOption =
CommonOptions
.CreateArtifactsPathOption();
60
public readonly Option<string> VersionSuffixOption =
CommonOptions
.CreateVersionSuffixOption();
61
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveMsBuildForwardOption();
62
public readonly Option<bool> DisableBuildServersOption =
CommonOptions
.CreateDisableBuildServersOption();
63
public readonly Option<string[]?> GetPropertyOption =
CommonOptions
.CreateGetPropertyOption();
64
public readonly Option<string[]?> GetItemOption =
CommonOptions
.CreateGetItemOption();
65
public readonly Option<string[]?> GetTargetResultOption =
CommonOptions
.CreateGetTargetResultOption();
66
public readonly Option<string[]?> GetResultOutputFileOption =
CommonOptions
.CreateGetResultOutputFileOption();
99
=>
CommonOptions
.CreateRequiredMSBuildTargetOption("Publish", [("_IsPublishing", "true")]);
Commands\Reference\ReferenceAddCommandDefinition.cs (1)
51
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveOption();
Commands\Restore\RestoreCommandDefinition.cs (10)
23
public readonly Option<Utils.VerbosityOptions> VerbosityOption =
CommonOptions
.CreateVerbosityOption(Utils.VerbosityOptions.minimal);
24
public readonly Option<bool> NoLogoOption =
CommonOptions
.CreateNoLogoOption();
26
public readonly Option<bool> DisableBuildServersOption =
CommonOptions
.CreateDisableBuildServersOption();
31
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveMsBuildForwardOption();
32
public readonly Option<string> ArtifactsPathOption =
CommonOptions
.CreateArtifactsPathOption();
58
public readonly Option<string[]?> GetPropertyOption =
CommonOptions
.CreateGetPropertyOption();
59
public readonly Option<string[]?> GetItemOption =
CommonOptions
.CreateGetItemOption();
60
public readonly Option<string[]?> GetTargetResultOption =
CommonOptions
.CreateGetTargetResultOption();
61
public readonly Option<string[]?> GetResultOutputFileOption =
CommonOptions
.CreateGetResultOutputFileOption();
131
public static Option<string[]> CreateTargetOption() =>
CommonOptions
.CreateRequiredMSBuildTargetOption("Restore");
Commands\Run\RunCommandDefinition.cs (11)
14
public readonly Option<string?> ConfigurationOption =
CommonOptions
.CreateConfigurationOption(CommandDefinitionStrings.RunConfigurationOptionDescription);
16
public readonly Option<string> FrameworkOption =
CommonOptions
.CreateFrameworkOption(CommandDefinitionStrings.RunFrameworkOptionDescription);
32
public readonly Option<ReadOnlyDictionary<string, string>?> PropertyOption =
CommonOptions
.CreatePropertyOption();
71
public readonly Option<bool> NoRestoreOption =
CommonOptions
.CreateNoRestoreOption();
73
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveMsBuildForwardOption();
83
public readonly Option<bool> SelfContainedOption =
CommonOptions
.CreateSelfContainedOption();
85
public readonly Option<bool> NoSelfContainedOption =
CommonOptions
.CreateNoSelfContainedOption();
87
public readonly Option<Utils.VerbosityOptions?> VerbosityOption =
CommonOptions
.CreateVerbosityOption();
89
public readonly Option<bool> DisableBuildServersOption =
CommonOptions
.CreateDisableBuildServersOption();
91
public readonly Option<string> ArtifactsPathOption =
CommonOptions
.CreateArtifactsPathOption();
93
public readonly Option<IReadOnlyDictionary<string, string>> EnvOption =
CommonOptions
.CreateEnvOption();
Commands\Test\TestCommandDefinition.cs (3)
21
public readonly Option<string> FrameworkOption =
CommonOptions
.CreateFrameworkOption(CommandDefinitionStrings.TestFrameworkOptionDescription);
23
public readonly Option<string?> ConfigurationOption =
CommonOptions
.CreateConfigurationOption(CommandDefinitionStrings.TestConfigurationOptionDescription);
25
public readonly Option<Utils.VerbosityOptions?> VerbosityOption =
CommonOptions
.CreateVerbosityOption();
Commands\Test\TestCommandDefinition.MicrosoftTestingPlatform.cs (7)
108
public readonly Option<IReadOnlyDictionary<string, string>> EnvOption =
CommonOptions
.CreateEnvOption();
110
public readonly Option<ReadOnlyDictionary<string, string>?> PropertiesOption =
CommonOptions
.CreatePropertyOption();
112
public readonly Option<bool> NoRestoreOption =
CommonOptions
.CreateNoRestoreOption();
119
public readonly Option<bool> NoLogoOption =
CommonOptions
.CreateNoLogoOption(
124
public readonly Option<bool> UseCurrentRuntimeOption =
CommonOptions
.CreateUseCurrentRuntimeOption(CommandDefinitionStrings.CmdCurrentRuntimeOptionDescription);
204
public readonly Option<string> ArtifactsPathOption =
CommonOptions
.CreateArtifactsPathOption();
208
public readonly Option<string[]> MTPTargetOption =
CommonOptions
.CreateRequiredMSBuildTargetOption(BuildTargetName);
Commands\Test\TestCommandDefinition.VSTest.cs (8)
26
public readonly Option<IReadOnlyDictionary<string, string>> TestEnvOption =
CommonOptions
.CreateEnvOption(CommandDefinitionStrings.CmdTestEnvironmentVariableDescription);
59
public readonly Option<string> ArtifactsPathOption =
CommonOptions
.CreateArtifactsPathOption();
127
public readonly Option<bool> NoLogoOption =
CommonOptions
.CreateNoLogoOption(forwardAs: "--property:VSTestNoLogo=true", description: CommandDefinitionStrings.TestCmdNoLogo);
129
public readonly Option<bool> NoRestoreOption =
CommonOptions
.CreateNoRestoreOption();
131
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveMsBuildForwardOption();
133
public readonly Option<ReadOnlyDictionary<string, string>?> PropertiesOption =
CommonOptions
.CreatePropertyOption();
135
public readonly Option<bool> DisableBuildServersOption =
CommonOptions
.CreateDisableBuildServersOption();
137
public readonly Option<string[]> VsTestTargetOption =
CommonOptions
.CreateRequiredMSBuildTargetOption("VSTest");
Commands\Tool\StoreCommandDefinition.cs (5)
69
public readonly Option<string> FrameworkOption =
CommonOptions
.CreateFrameworkOption(CommandDefinitionStrings.StoreFrameworkOptionDescription);
71
public readonly Option<Utils.VerbosityOptions?> VerbosityOption =
CommonOptions
.CreateVerbosityOption();
72
public readonly Option<bool> UseCurrentRuntimeOption =
CommonOptions
.CreateUseCurrentRuntimeOption(CommandDefinitionStrings.CurrentRuntimeOptionDescription);
73
public readonly Option<bool> DisableBuildServersOption =
CommonOptions
.CreateDisableBuildServersOption();
74
public readonly Option<bool> NoLogoOption =
CommonOptions
.CreateNoLogoOption(true);
Commands\Tool\ToolExecuteCommandDefinition.cs (2)
32
public readonly Option<bool> YesOption =
CommonOptions
.CreateYesOption(hidden: true);
33
public readonly Option<Utils.VerbosityOptions> VerbosityOption =
CommonOptions
.CreateVerbosityOption(Utils.VerbosityOptions.normal);
Commands\Tool\ToolRestoreCommandDefinition.cs (1)
16
public readonly Option<Utils.VerbosityOptions> VerbosityOption =
CommonOptions
.CreateVerbosityOption(Utils.VerbosityOptions.normal);
Commands\Tool\ToolUpdateInstallCommandDefinition.cs (1)
35
public readonly Option<VerbosityOptions> VerbosityOption =
CommonOptions
.CreateVerbosityOption(VerbosityOptions.normal);
Commands\Workload\InstallingWorkloadCommandDefinition.cs (1)
14
public sealed override Option<Utils.VerbosityOptions> VerbosityOption { get; } =
CommonOptions
.CreateVerbosityOption(Utils.VerbosityOptions.normal);
Commands\Workload\WorkloadListCommandDefinition.cs (1)
18
public override Option<Utils.VerbosityOptions> VerbosityOption { get; } =
CommonOptions
.CreateHiddenVerbosityOption();
Commands\Workload\WorkloadRepairCommandDefinition.cs (1)
16
public override Option<Utils.VerbosityOptions> VerbosityOption { get; } =
CommonOptions
.CreateVerbosityOption(Utils.VerbosityOptions.normal);
Commands\Workload\WorkloadSearchCommandDefinition.cs (1)
17
public override Option<Utils.VerbosityOptions> VerbosityOption { get; } =
CommonOptions
.CreateHiddenVerbosityOption();
Commands\Workload\WorkloadUninstallCommandDefinition.cs (1)
13
public override Option<Utils.VerbosityOptions> VerbosityOption { get; } =
CommonOptions
.CreateVerbosityOption(Utils.VerbosityOptions.normal);
Common\ImplicitRestoreOptions.cs (3)
35
CurrentRuntimeOption =
CommonOptions
.CreateUseCurrentRuntimeOption(CommandDefinitionStrings.CmdCurrentRuntimeOptionDescription);
83
PropertiesOption =
CommonOptions
.CreatePropertyOption();
84
RestorePropertiesOption =
CommonOptions
.CreateRestorePropertyOption();
Common\NuGetRestoreOptions.cs (1)
39
public readonly Option<bool> InteractiveOption =
CommonOptions
.CreateInteractiveOption(hidden: hidden);