94 references to ExeSuffix
dotnet.Tests (8)
CommandTests\Publish\GivenDotnetPublishPublishesProjects.cs (5)
124var outputProgram = Path.Combine(outputDirectory.FullName, $"{testAppName}{Constants.ExeSuffix}"); 139var outputProgram = Path.Combine(outputDirectory.FullName, $"{testAppName}{Constants.ExeSuffix}"); 222$"{testAppName}{Constants.ExeSuffix}", 229var 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)
1862new RunExeCommand(Log, Path.Join(publishDir, "Program", $"Program{Constants.ExeSuffix}"))
Microsoft.DotNet.Cli.Utils (1)
Muxer.cs (1)
72processPath = Path.Combine(root, $"dotnet{Constants.ExeSuffix}");
Microsoft.NET.Build.Tests (25)
AppHostTests.cs (5)
21$"{testProjectName}{Constants.ExeSuffix}", 69var hostExecutable = $"HelloWorld{Constants.ExeSuffix}"; 294outputDirectory.Should().HaveFiles(new[] { $"{testProject.Name}{Constants.ExeSuffix}" }); 302ReadOnlySpan<byte> appBytes = File.ReadAllBytes(Path.Combine(outputDirectory.FullName, $"{testProject.Name}{Constants.ExeSuffix}")); 433var intermediateAppHost = Path.Combine(intermediateDirectory, "apphost" + Constants.ExeSuffix);
GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs (2)
49var selfContainedExecutable = $"App{Constants.ExeSuffix}"; 101$"App{Constants.ExeSuffix}",
GivenThatWeWantToBuildASelfContainedApp.cs (9)
50var selfContainedExecutable = $"HelloWorld{Constants.ExeSuffix}"; 75$"apphost{Constants.ExeSuffix}", 139var selfContainedExecutable = $"HelloWorld{Constants.ExeSuffix}"; 504itemsWithTargetPaths.Should().NotContain((i) => i.value.EndsWith($"singlefilehost{Constants.ExeSuffix}")); 506i.value.EndsWith($"apphost{Constants.ExeSuffix}") 507&& i.metadata["TargetPath"] == $"{project.Name}{Constants.ExeSuffix}"); 518$"{project.Name}{Constants.ExeSuffix}"); 586var selfContainedExecutable = $"HelloWorld{Constants.ExeSuffix}"; 629var 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)
70expectedFiles.Add($"{testProject.Name}{Constants.ExeSuffix}");
GivenThatWeWantToUseVB.cs (1)
129$"HelloWorld{Constants.ExeSuffix}",
ReferenceExeTests.cs (2)
145var mainExePath = Path.Combine(outputDirectory, MainProject.Name + Constants.ExeSuffix); 147var referencedExePath = Path.Combine(outputDirectory, ReferencedProject.Name + Constants.ExeSuffix);
Microsoft.NET.Publish.Tests (53)
FilesCopiedToPublishDirTests.cs (1)
82string exeSuffix = specifyRid ? ".exe" : Constants.ExeSuffix;
GivenThatWeWantToFilterSatelliteAssemblies.cs (1)
51files.Add($"{testProject.Name}{Constants.ExeSuffix}");
GivenThatWeWantToPublishAFrameworkDependentApp.cs (1)
39var appHostName = $"{TestProjectName}{Constants.ExeSuffix}";
GivenThatWeWantToPublishAHelloWorldProject.cs (7)
96var selfContainedExecutable = $"HelloWorld{Constants.ExeSuffix}"; 115$"apphost{Constants.ExeSuffix}" 164publishDirectory.Should().HaveFile($"Hello.World{Constants.ExeSuffix}"); 342var selfContainedExecutable = testProject.Name + Constants.ExeSuffix; 908output.Should().HaveFile($"{testProject.Name}{Constants.ExeSuffix}"); 912output.Should().NotHaveFile($"{testProject.Name}{Constants.ExeSuffix}"); 1152TestCommand runCommand = new RunExeCommand(Log, Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"));
GivenThatWeWantToPublishAnAotApp.cs (11)
61var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 104var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 149var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 201var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 243var assemblyPath = Path.Combine(outputDirectory, $"{projectName}{Constants.ExeSuffix}"); 296var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 339var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 369var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 415var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 743var publishedExe = Path.Combine(publishDirectory.FullName, $"{testProject.Name}{Constants.ExeSuffix}"); 838var publishedExe = Path.Combine(publishDirectory.FullName, $"{testProject.Name}{Constants.ExeSuffix}");
GivenThatWeWantToPublishAnAppWithLibrariesAndRid.cs (3)
26var selfContainedExecutable = $"App{Constants.ExeSuffix}"; 48$"apphost{Constants.ExeSuffix}", 67$"App{Constants.ExeSuffix}",
GivenThatWeWantToPublishASingleFileApp.cs (12)
36private readonly string SingleFile = $"{TestProjectName}{Constants.ExeSuffix}"; 105var singleFilePath = Path.Combine(GetPublishDirectory(cmd).FullName, $"SingleFileTest{Constants.ExeSuffix}"); 288string[] expectedFiles = { $"{testProject.Name}{Constants.ExeSuffix}", $"{testProject.Name}.pdb" }; 328var singleFilePath = Path.Combine(publishDir, $"{testProject.Name}{Constants.ExeSuffix}"); 420string[] expectedFiles = { $"{testProject.Name}{Constants.ExeSuffix}" }; 480string[] expectedFiles = { $"{testProject.Name}{Constants.ExeSuffix}" }; 569$"{testProject.Name}{Constants.ExeSuffix}"); 827var singleFilePath = Path.Combine(publishDir, $"{testProject.Name}{Constants.ExeSuffix}"); 960var singleFilePath = Path.Combine(GetPublishDirectory(publishCommand, ToolsetInfo.CurrentTargetFramework).FullName, $"SingleFileTest{Constants.ExeSuffix}"); 991var singleFilePath = Path.Combine(GetPublishDirectory(publishCommand, ToolsetInfo.CurrentTargetFramework).FullName, $"SingleFileTest{Constants.ExeSuffix}"); 1025var singleFilePath = Path.Combine(GetPublishDirectory(publishCommand, ToolsetInfo.CurrentTargetFramework).FullName, $"SingleFileTest{Constants.ExeSuffix}"); 1058var 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}", 101new RunExeCommand(Log, Path.Combine(output.FullName, $"{testProject.Name}{Constants.ExeSuffix}")) 146$"{testProject.Name}{Constants.ExeSuffix}", 231output.Should().HaveFile($"{testProject.Name}{Constants.ExeSuffix}"); 235output.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)
132var exe = Path.Combine(publishDirectory.FullName, $"{testProject.Name}{Constants.ExeSuffix}");
PublishItemsOutputGroupOutputsTests.cs (1)
82string exeSuffix = specifyRid ? ".exe" : Constants.ExeSuffix;
PublishItemsOutputGroupTests.cs (1)
67string exeSuffix = specifyRid ? ".exe" : Constants.ExeSuffix;
RuntimeIdentifiersTests.cs (3)
63var selfContainedExecutable = $"{testProject.Name}{Constants.ExeSuffix}"; 105var selfContainedExecutable = $"{testProject.Name}{Constants.ExeSuffix}"; 172var selfContainedExecutable = $"{testProject.Name}{Constants.ExeSuffix}";
Microsoft.NET.TestFramework (6)
Assertions\DependencyContextAssertions.cs (1)
70return Path.Combine(folder, appName + Constants.ExeSuffix);
TestContext.cs (3)
237testContext.NuGetExePath = Path.Combine(artifactsDir, ".nuget", $"nuget{Constants.ExeSuffix}"); 245testContext.NuGetExePath = Path.Combine(testContext.TestExecutionDirectory, ".nuget", $"nuget{Constants.ExeSuffix}"); 260testContext.NuGetExePath = Path.Combine(nugetFolder, $"nuget{Constants.ExeSuffix}");
ToolsetInfo.cs (2)
78DotNetHostPath = Path.Combine(dotNetRoot, $"dotnet{Constants.ExeSuffix}"); 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.");