167 references to Constants
dotnet (45)
CommandFactory\CommandFactory.cs (1)
17
string configuration =
Constants
.DefaultConfiguration)
CommandFactory\CommandFactoryUsingResolver.cs (3)
21
string configuration =
Constants
.DefaultConfiguration,
41
string configuration =
Constants
.DefaultConfiguration,
62
string configuration =
Constants
.DefaultConfiguration,
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (1)
85
Constants
.AnyRid,
CommandFactory\CommandResolution\MSBuildProject.cs (1)
81
{
Constants
.MSBUILD_EXE_PATH, _msBuildExePath }
CommandFactory\CommandResolution\ProjectFactory.cs (1)
31
var msBuildExePath = _environment.GetEnvironmentVariable(
Constants
.MSBUILD_EXE_PATH);
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (1)
375
var msBuildExePath = _environment.GetEnvironmentVariable(
Constants
.MSBUILD_EXE_PATH);
CommandFactory\CommandResolver.cs (2)
18
string configuration =
Constants
.DefaultConfiguration,
37
string configuration =
Constants
.DefaultConfiguration,
CommandFactory\ICommandFactory.cs (1)
17
string configuration =
Constants
.DefaultConfiguration);
Commands\Restore\RestoringCommand.cs (3)
25
{
Constants
.EnableDefaultCompileItems, "false" },
26
{
Constants
.EnableDefaultEmbeddedResourceItems, "false" },
27
{
Constants
.EnableDefaultNoneItems, "false" },
Commands\Run\CommonRunHelpers.cs (2)
20
globalProperties[
Constants
.MSBuildExtensionsPath] = AppContext.BaseDirectory;
39
return msbuildArgs.CloneWithAdditionalArgs(
Constants
.TerminalLogger_DisableNodeDisplay);
Commands\Run\RunCommand.cs (9)
348
? MSBuildArgs.CloneWithAdditionalTargets(
Constants
.Build,
Constants
.ComputeRunArguments,
Constants
.CoreCompile)
349
: MSBuildArgs.CloneWithAdditionalTargets(
Constants
.ComputeRunArguments,
Constants
.CoreCompile);
497
if (!project.Build([
Constants
.ComputeRunArguments], loggers: loggersForBuild, remoteLoggers: null, out _))
499
throw new GracefulException(CliCommandStrings.RunCommandEvaluationExceptionBuildFailed,
Constants
.ComputeRunArguments);
852
globalProperties[
Constants
.EnableDefaultItems] = "false";
853
globalProperties[
Constants
.MSBuildExtensionsPath] = AppContext.BaseDirectory;
Commands\Run\VirtualProjectBuildingCommand.cs (7)
343
targetsToBuild: RequestedTargets ?? [
Constants
.Build,
Constants
.CoreCompile]);
467
if (result.TryGetResultsForTarget(
Constants
.CoreCompile, out var coreCompileResult) &&
469
result.TryGetResultsForTarget(
Constants
.Build, out var buildResult) &&
478
Reporter.Verbose.WriteLine($"Reusing previous CSC arguments ({cache.CurrentEntry.CscArguments.Length}) because none were found in the {
Constants
.CoreCompile} target.");
483
.Select(static i => i.GetMetadata(
Constants
.Identity))
487
cache.CurrentEntry.BuildResultFile = buildResultItem.GetMetadata(
Constants
.FullPath);
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
18
private static readonly string[] s_computeRunArgumentsTarget = [
Constants
.ComputeRunArguments];
Commands\Tool\Install\LocalToolsResolverCacheExtensions.cs (1)
42
Constants
.AnyRid,
Commands\Tool\Install\ProjectRestorer.cs (2)
32
argsToPassToRestore.AddRange(["--runtime",
Constants
.AnyRid]);
68
&& _additionalRestoreArguments.Contains(
Constants
.RestoreInteractiveOption, StringComparer.Ordinal))
Commands\Tool\Restore\ToolPackageRestorer.cs (2)
92
Constants
.AnyRid,
123
Constants
.AnyRid,
Commands\Workload\Install\WorkloadManifestUpdater.cs (2)
183
var workloadSetVersionFilePath = Path.Combine(advertisedPath,
Constants
.workloadSetVersionFileName);
357
File.WriteAllText(Path.Combine(adManifestPath,
Constants
.workloadSetVersionFileName), workloadSetVersion);
DotNetCommandFactory.cs (2)
23
string configuration =
Constants
.DefaultConfiguration)
28
Debug.Assert(configuration ==
Constants
.DefaultConfiguration, "BuiltInCommand doesn't support the 'configuration' argument.");
ToolManifest\ToolManifestFinder.cs (3)
167
currentSearchDirectory.Value.WithSubDirectories(
Constants
.DotConfigDirectoryName);
224
var currentSearchGitDirectory = currentSearchDirectory.Value.WithSubDirectories(
Constants
.GitDirectoryName);
253
string manifestFileLocation = Path.Combine(folderPath.Value,
Constants
.ToolManifestFileName);
dotnet.Tests (27)
BuildServerTests\RazorServerTests.cs (1)
144
Constants
.DefaultConfiguration))
BuildServerTests\VBCSCompilerServerTests.cs (1)
53
Constants
.DefaultConfiguration))
CommandFactoryTests\GivenALocalToolsCommandResolver.cs (4)
102
Constants
.AnyRid,
135
Constants
.AnyRid,
200
Constants
.AnyRid,
207
Constants
.AnyRid,
CommandFactoryTests\GivenAProjectDependencyCommandResolver.cs (2)
18
Constants
.MSBUILD_EXE_PATH,
165
Constants
.MSBUILD_EXE_PATH,
CommandTests\MSBuild\GivenDotnetBuildInvocation.cs (2)
145
command.GetArgumentTokensToMSBuild().Should().Contain(
Constants
.TerminalLogger_DisableNodeDisplay);
149
command.GetArgumentTokensToMSBuild().Should().NotContain(
Constants
.TerminalLogger_DisableNodeDisplay);
CommandTests\Publish\GivenDotnetPublishPublishesProjects.cs (5)
124
var outputProgram = Path.Combine(outputDirectory.FullName, $"{testAppName}{
Constants
.ExeSuffix}");
139
var outputProgram = Path.Combine(outputDirectory.FullName, $"{testAppName}{
Constants
.ExeSuffix}");
222
$"{testAppName}{
Constants
.ExeSuffix}",
229
var outputProgram = Path.Combine(outputDirectory.FullName, $"{testAppName}{
Constants
.ExeSuffix}");
250
$"{testAppName}{
Constants
.ExeSuffix}",
CommandTests\Run\GivenDotnetRunBuildsCsProj.cs (2)
776
.HaveStdOutContaining($"dotnet{
Constants
.ExeSuffix}");
789
.And.HaveStdOutContaining($"AppOutputsExecutablePath{
Constants
.ExeSuffix}");
CommandTests\Run\RunFileTests.cs (1)
1862
new RunExeCommand(Log, Path.Join(publishDir, "Program", $"Program{
Constants
.ExeSuffix}"))
CommandTests\Tool\Install\ToolInstallLocalCommandTests.cs (3)
311
Constants
.AnyRid,
420
Constants
.AnyRid,
565
Constants
.AnyRid,
CommandTests\Tool\Restore\ToolRestoreCommandTests.cs (2)
142
Constants
.AnyRid,
282
Constants
.AnyRid,
CommandTests\Tool\Restore\ToolRestoreCommandWithMultipleNugetConfigTests.cs (2)
147
Constants
.AnyRid,
156
Constants
.AnyRid,
CommandTests\Tool\Run\ToolRunCommandTests.cs (1)
95
Constants
.AnyRid,
CommandTests\Tool\Update\ToolUpdateLocalCommandTests.cs (1)
420
Constants
.AnyRid,
Microsoft.DotNet.Cli.Utils (1)
Muxer.cs (1)
72
processPath = Path.Combine(root, $"dotnet{
Constants
.ExeSuffix}");
Microsoft.DotNet.PackageInstall.Tests (6)
LocalToolsResolverCacheTests.cs (6)
42
string runtimeIdentifier =
Constants
.AnyRid;
82
string runtimeIdentifier =
Constants
.AnyRid;
116
string runtimeIdentifier =
Constants
.AnyRid;
156
string runtimeIdentifier =
Constants
.AnyRid;
238
string runtimeIdentifier =
Constants
.AnyRid;
295
string runtimeIdentifier =
Constants
.AnyRid;
Microsoft.DotNet.Tools.Tests.ComponentMocks (1)
ToolPackageDownloaderMock.cs (1)
141
Constants
.AnyRid);
Microsoft.NET.Build.Tests (25)
AppHostTests.cs (5)
21
$"{testProjectName}{
Constants
.ExeSuffix}",
69
var hostExecutable = $"HelloWorld{
Constants
.ExeSuffix}";
294
outputDirectory.Should().HaveFiles(new[] { $"{testProject.Name}{
Constants
.ExeSuffix}" });
302
ReadOnlySpan<byte> appBytes = File.ReadAllBytes(Path.Combine(outputDirectory.FullName, $"{testProject.Name}{
Constants
.ExeSuffix}"));
433
var intermediateAppHost = Path.Combine(intermediateDirectory, "apphost" +
Constants
.ExeSuffix);
GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs (2)
49
var selfContainedExecutable = $"App{
Constants
.ExeSuffix}";
101
$"App{
Constants
.ExeSuffix}",
GivenThatWeWantToBuildASelfContainedApp.cs (9)
50
var selfContainedExecutable = $"HelloWorld{
Constants
.ExeSuffix}";
75
$"apphost{
Constants
.ExeSuffix}",
139
var selfContainedExecutable = $"HelloWorld{
Constants
.ExeSuffix}";
504
itemsWithTargetPaths.Should().NotContain((i) => i.value.EndsWith($"singlefilehost{
Constants
.ExeSuffix}"));
506
i.value.EndsWith($"apphost{
Constants
.ExeSuffix}")
507
&& i.metadata["TargetPath"] == $"{project.Name}{
Constants
.ExeSuffix}");
518
$"{project.Name}{
Constants
.ExeSuffix}");
586
var selfContainedExecutable = $"HelloWorld{
Constants
.ExeSuffix}";
629
var selfContainedExecutable = $"HelloWorld{
Constants
.ExeSuffix}";
GivenThatWeWantToCopyLocalDependencies.cs (5)
42
$"{ProjectName}{
Constants
.ExeSuffix}",
82
$"{ProjectName}{
Constants
.ExeSuffix}",
121
$"{ProjectName}{
Constants
.ExeSuffix}",
333
$"{ProjectName}{
Constants
.ExeSuffix}",
349
$"apphost{
Constants
.ExeSuffix}",
GivenThatWeWantToFilterSatelliteAssemblies.cs (1)
70
expectedFiles.Add($"{testProject.Name}{
Constants
.ExeSuffix}");
GivenThatWeWantToUseVB.cs (1)
129
$"HelloWorld{
Constants
.ExeSuffix}",
ReferenceExeTests.cs (2)
145
var mainExePath = Path.Combine(outputDirectory, MainProject.Name +
Constants
.ExeSuffix);
147
var referencedExePath = Path.Combine(outputDirectory, ReferencedProject.Name +
Constants
.ExeSuffix);
Microsoft.NET.Publish.Tests (53)
FilesCopiedToPublishDirTests.cs (1)
82
string exeSuffix = specifyRid ? ".exe" :
Constants
.ExeSuffix;
GivenThatWeWantToFilterSatelliteAssemblies.cs (1)
51
files.Add($"{testProject.Name}{
Constants
.ExeSuffix}");
GivenThatWeWantToPublishAFrameworkDependentApp.cs (1)
39
var appHostName = $"{TestProjectName}{
Constants
.ExeSuffix}";
GivenThatWeWantToPublishAHelloWorldProject.cs (7)
96
var selfContainedExecutable = $"HelloWorld{
Constants
.ExeSuffix}";
115
$"apphost{
Constants
.ExeSuffix}"
164
publishDirectory.Should().HaveFile($"Hello.World{
Constants
.ExeSuffix}");
342
var selfContainedExecutable = testProject.Name +
Constants
.ExeSuffix;
908
output.Should().HaveFile($"{testProject.Name}{
Constants
.ExeSuffix}");
912
output.Should().NotHaveFile($"{testProject.Name}{
Constants
.ExeSuffix}");
1152
TestCommand runCommand = new RunExeCommand(Log, Path.Combine(publishDirectory, $"{testProject.Name}{
Constants
.ExeSuffix}"));
GivenThatWeWantToPublishAnAotApp.cs (11)
61
var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{
Constants
.ExeSuffix}");
104
var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{
Constants
.ExeSuffix}");
149
var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{
Constants
.ExeSuffix}");
201
var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{
Constants
.ExeSuffix}");
243
var assemblyPath = Path.Combine(outputDirectory, $"{projectName}{
Constants
.ExeSuffix}");
296
var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{
Constants
.ExeSuffix}");
339
var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{
Constants
.ExeSuffix}");
369
var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{
Constants
.ExeSuffix}");
415
var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{
Constants
.ExeSuffix}");
743
var publishedExe = Path.Combine(publishDirectory.FullName, $"{testProject.Name}{
Constants
.ExeSuffix}");
838
var publishedExe = Path.Combine(publishDirectory.FullName, $"{testProject.Name}{
Constants
.ExeSuffix}");
GivenThatWeWantToPublishAnAppWithLibrariesAndRid.cs (3)
26
var selfContainedExecutable = $"App{
Constants
.ExeSuffix}";
48
$"apphost{
Constants
.ExeSuffix}",
67
$"App{
Constants
.ExeSuffix}",
GivenThatWeWantToPublishASingleFileApp.cs (12)
36
private readonly string SingleFile = $"{TestProjectName}{
Constants
.ExeSuffix}";
105
var singleFilePath = Path.Combine(GetPublishDirectory(cmd).FullName, $"SingleFileTest{
Constants
.ExeSuffix}");
288
string[] expectedFiles = { $"{testProject.Name}{
Constants
.ExeSuffix}", $"{testProject.Name}.pdb" };
328
var singleFilePath = Path.Combine(publishDir, $"{testProject.Name}{
Constants
.ExeSuffix}");
420
string[] expectedFiles = { $"{testProject.Name}{
Constants
.ExeSuffix}" };
480
string[] expectedFiles = { $"{testProject.Name}{
Constants
.ExeSuffix}" };
569
$"{testProject.Name}{
Constants
.ExeSuffix}");
827
var singleFilePath = Path.Combine(publishDir, $"{testProject.Name}{
Constants
.ExeSuffix}");
960
var singleFilePath = Path.Combine(GetPublishDirectory(publishCommand, ToolsetInfo.CurrentTargetFramework).FullName, $"SingleFileTest{
Constants
.ExeSuffix}");
991
var singleFilePath = Path.Combine(GetPublishDirectory(publishCommand, ToolsetInfo.CurrentTargetFramework).FullName, $"SingleFileTest{
Constants
.ExeSuffix}");
1025
var singleFilePath = Path.Combine(GetPublishDirectory(publishCommand, ToolsetInfo.CurrentTargetFramework).FullName, $"SingleFileTest{
Constants
.ExeSuffix}");
1058
var host = $"SingleFileTest{
Constants
.ExeSuffix}";
GivenThatWeWantToPublishAToolProject.cs (2)
44
.Should().HaveFile("consoledemo" +
Constants
.ExeSuffix);
62
.Should().HaveFile("consoledemo" +
Constants
.ExeSuffix)
GivenThatWeWantToPublishAWebApp.cs (6)
87
$"{testProject.Name}{
Constants
.ExeSuffix}",
98
$"apphost{
Constants
.ExeSuffix}",
101
new RunExeCommand(Log, Path.Combine(output.FullName, $"{testProject.Name}{
Constants
.ExeSuffix}"))
146
$"{testProject.Name}{
Constants
.ExeSuffix}",
231
output.Should().HaveFile($"{testProject.Name}{
Constants
.ExeSuffix}");
235
output.Should().NotHaveFile($"{testProject.Name}{
Constants
.ExeSuffix}");
GivenThatWeWantToPublishToClickOnce.cs (3)
88
$"application files\\{testProject.Name}_1_2_3_4\\launcher{
Constants
.ExeSuffix}",
94
$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}{
Constants
.ExeSuffix}",
111
$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}{
Constants
.ExeSuffix}",
GivenThatWeWantToRunILLink.cs (1)
132
var exe = Path.Combine(publishDirectory.FullName, $"{testProject.Name}{
Constants
.ExeSuffix}");
PublishItemsOutputGroupOutputsTests.cs (1)
82
string exeSuffix = specifyRid ? ".exe" :
Constants
.ExeSuffix;
PublishItemsOutputGroupTests.cs (1)
67
string exeSuffix = specifyRid ? ".exe" :
Constants
.ExeSuffix;
RuntimeIdentifiersTests.cs (3)
63
var selfContainedExecutable = $"{testProject.Name}{
Constants
.ExeSuffix}";
105
var selfContainedExecutable = $"{testProject.Name}{
Constants
.ExeSuffix}";
172
var selfContainedExecutable = $"{testProject.Name}{
Constants
.ExeSuffix}";
Microsoft.NET.TestFramework (8)
Assertions\DependencyContextAssertions.cs (1)
70
return Path.Combine(folder, appName +
Constants
.ExeSuffix);
TestContext.cs (4)
237
testContext.NuGetExePath = Path.Combine(artifactsDir, ".nuget", $"nuget{
Constants
.ExeSuffix}");
245
testContext.NuGetExePath = Path.Combine(testContext.TestExecutionDirectory, ".nuget", $"nuget{
Constants
.ExeSuffix}");
260
testContext.NuGetExePath = Path.Combine(nugetFolder, $"nuget{
Constants
.ExeSuffix}");
283
Constants
.MSBUILD_EXE_PATH,
ToolsetInfo.cs (3)
78
DotNetHostPath = Path.Combine(dotNetRoot, $"dotnet{
Constants
.ExeSuffix}");
208
environment[
Constants
.MSBUILD_EXE_PATH] = "";
251
=> Path.Combine(dotnetRoot ?? string.Empty, "dotnet" +
Constants
.ExeSuffix);
Microsoft.NET.ToolPack.Tests (1)
GivenThatWeWantToPackAToolProject.cs (1)
198
.Should().Be("consoledemo" +
Constants
.ExeSuffix, because: "The RunCommand should recognize that this is an AppHost-using project and should use the AppHost for non-tool use cases.");