94 references to ExeSuffix
dotnet.Tests (8)
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
}"))
Microsoft.DotNet.Cli.Utils (1)
Muxer.cs (1)
72
processPath = Path.Combine(root, $"dotnet{Constants.
ExeSuffix
}");
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 (6)
Assertions\DependencyContextAssertions.cs (1)
70
return Path.Combine(folder, appName + Constants.
ExeSuffix
);
TestContext.cs (3)
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
}");
ToolsetInfo.cs (2)
78
DotNetHostPath = 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.");