60 references to Constants
dotnet (59)
CommandFactory\CommandFactory.cs (1)
17string configuration = Constants.DefaultConfiguration)
CommandFactory\CommandFactoryUsingResolver.cs (3)
21string configuration = Constants.DefaultConfiguration, 41string configuration = Constants.DefaultConfiguration, 62string configuration = Constants.DefaultConfiguration,
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (1)
82Constants.AnyRid,
CommandFactory\CommandResolution\MSBuildProject.cs (1)
81{ Constants.MSBUILD_EXE_PATH, _msBuildExePath }
CommandFactory\CommandResolution\ProjectFactory.cs (1)
31var msBuildExePath = _environment.GetEnvironmentVariable(Constants.MSBUILD_EXE_PATH);
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (1)
376var msBuildExePath = _environment.GetEnvironmentVariable(Constants.MSBUILD_EXE_PATH);
CommandFactory\CommandResolver.cs (2)
18string configuration = Constants.DefaultConfiguration, 37string configuration = Constants.DefaultConfiguration,
CommandFactory\ICommandFactory.cs (1)
17string configuration = Constants.DefaultConfiguration);
Commands\DotNetCommandFactory.cs (2)
23public ICommand Create(string commandName, IEnumerable<string> args, NuGetFramework? framework = null, string configuration = Constants.DefaultConfiguration) 28Debug.Assert(configuration == Constants.DefaultConfiguration, "BuiltInCommand doesn't support the 'configuration' argument.");
Commands\Restore\RestoringCommand.cs (3)
26{ Constants.EnableDefaultCompileItems, "false" }, 27{ Constants.EnableDefaultEmbeddedResourceItems, "false" }, 28{ Constants.EnableDefaultNoneItems, "false" },
Commands\Run\CommonRunHelpers.cs (2)
20globalProperties[Constants.MSBuildExtensionsPath] = AppContext.BaseDirectory; 32return msbuildArgs.CloneWithAdditionalArgs(Constants.TerminalLogger_DisableNodeDisplay);
Commands\Run\EnvironmentVariablesToMSBuild.cs (4)
30projectInstance.AddItem(Constants.RuntimeEnvironmentVariable, name, new Dictionary<string, string> 61? Path.Combine(projectDirectory, Constants.ObjDirectoryName) 116[Constants.CustomBeforeMicrosoftCommonProps] = propsFilePath 138writer.WriteStartElement(Constants.RuntimeEnvironmentVariable);
Commands\Run\RunCommand.cs (11)
527? MSBuildArgs.CloneWithAdditionalTargets(Constants.Build, Constants.ComputeRunArguments, Constants.CoreCompile) 528: MSBuildArgs.CloneWithAdditionalTargets(Constants.ComputeRunArguments, Constants.CoreCompile); 686if (project.GetItems(Constants.ProjectCapability) 687.Any(item => string.Equals(item.EvaluatedInclude, Constants.RuntimeEnvironmentVariableSupport, StringComparison.OrdinalIgnoreCase))) 702if (!project.Build([Constants.ComputeRunArguments], loggers: loggersForBuild, remoteLoggers: null, out _)) 704throw new GracefulException(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed, Constants.ComputeRunArguments); 1118globalProperties[Constants.EnableDefaultItems] = "false"; 1119globalProperties[Constants.MSBuildExtensionsPath] = AppContext.BaseDirectory;
Commands\Run\RunCommandSelector.cs (8)
57return projectInstance.GetPropertyValue(Constants.IntermediateOutputPath); 74return projectInstance.GetItems(Constants.ProjectCapability) 75.Any(item => string.Equals(item.EvaluatedInclude, Constants.RuntimeEnvironmentVariableSupport, StringComparison.OrdinalIgnoreCase)); 335if (!projectInstance.Targets.ContainsKey(Constants.ComputeAvailableDevices)) 360targets: [Constants.ComputeAvailableDevices], 371if (!targetOutputs.TryGetValue(Constants.ComputeAvailableDevices, out var targetResult)) 575if (!projectInstance.Targets.ContainsKey(Constants.DeployToDevice)) 589targets: [Constants.DeployToDevice],
Commands\Run\VirtualProjectBuildingCommand.cs (7)
332: [Constants.Build, Constants.CoreCompile]; 456if (result.TryGetResultsForTarget(Constants.CoreCompile, out var coreCompileResult) && 458result.TryGetResultsForTarget(Constants.Build, out var buildResult) && 467Reporter.Verbose.WriteLine($"Reusing previous CSC arguments ({cache.CurrentEntry.CscArguments.Length}) because none were found in the {Constants.CoreCompile} target."); 472.Select(static i => i.GetMetadata(Constants.Identity)) 476cache.CurrentEntry.BuildResultFile = buildResultItem.GetMetadata(Constants.FullPath);
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
18private static readonly string[] s_computeRunArgumentsTarget = [Constants.ComputeRunArguments];
Commands\Tool\Install\LocalToolsResolverCacheExtensions.cs (1)
42Constants.AnyRid,
Commands\Tool\Install\ProjectRestorer.cs (2)
32argsToPassToRestore.AddRange(["--runtime", Constants.AnyRid]); 68&& _additionalRestoreArguments.Contains(Constants.RestoreInteractiveOption, StringComparer.Ordinal))
Commands\Tool\Restore\ToolPackageRestorer.cs (2)
95Constants.AnyRid, 127Constants.AnyRid,
Commands\Workload\Install\WorkloadManifestUpdater.cs (2)
194var workloadSetVersionFilePath = Path.Combine(advertisedPath, Constants.workloadSetVersionFileName); 368File.WriteAllText(Path.Combine(adManifestPath, Constants.workloadSetVersionFileName), workloadSetVersion);
ToolManifest\ToolManifestFinder.cs (3)
167currentSearchDirectory.Value.WithSubDirectories(Constants.DotConfigDirectoryName); 224var currentSearchGitDirectory = currentSearchDirectory.Value.WithSubDirectories(Constants.GitDirectoryName); 253string manifestFileLocation = Path.Combine(folderPath.Value, Constants.ToolManifestFileName);
Microsoft.DotNet.Cli.Utils (1)
Muxer.cs (1)
39string muxerFileName = MuxerName + Constants.ExeSuffix;