517 references to GetFileName
AndroidAppBuilder (15)
ApkBuilder.cs (12)
200string fileName = Path.GetFileName(file);
220File.Copy(aotlib, Path.Combine(assetsToZipDirectory, Path.GetFileName(aotlib)));
377.Replace("%EntryPointLibName%", Path.GetFileName(mainLibraryFileName)));
392.Replace("%EntryPointLibName%", Path.GetFileName(mainLibraryFileName))
437dynamicLibs.AddRange(Directory.GetFiles(AppDir, "*.so").Where(file => Path.GetFileName(file) != "libmonodroid.so"));
444string dynamicLibName = Path.GetFileName(dynamicLib);
494logger.LogMessage(MessageImportance.High, $"Adding dex file {Path.GetFileName(dexFile)} as {classesFileName}");
590Utils.RunProcess(logger, aapt, $"remove -v bin/{Path.GetFileName(apkPath)} {file}", workingDir: OutputDir);
591Utils.RunProcess(logger, aapt, $"add -v bin/{Path.GetFileName(apkPath)} {file}", workingDir: OutputDir);
603.Select(Path.GetFileName)
605.Select(file => { Version.TryParse(Path.GetFileName(file), out Version? version); return version; })
621.Select(file => int.TryParse(Path.GetFileName(file).Replace("android-", ""), out int apiLevel) ? apiLevel : -1)
AppleAppBuilder (4)
ClientSample (1)
Crossgen2Tasks (5)
dotnet-dev-certs (1)
dotnet-getdocument (1)
dotnet-openapi (2)
dotnet-sql-cache (1)
dotnet-user-jwts (1)
dotnet-user-secrets (1)
GetDocument.Insider (1)
HelixTestRunner (7)
HttpStress (2)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
illink (1)
ILLink.Tasks (1)
installer.tasks (4)
LibraryBuilder (1)
Microsoft.Arcade.Common (2)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.Analyzer.Testing (2)
Microsoft.AspNetCore.App.UnitTests (3)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Components.WebView.Test (1)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.Views.TestCommon (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (2)
Microsoft.AspNetCore.StaticFiles.Tests (7)
Microsoft.Build (20)
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.CommandLine.UnitTests (5)
Microsoft.Build.Engine (15)
Engine\EngineLoggingServices.cs (5)
752ResourceUtilities.FormatResourceString("ProjectStartedPrefixForTopLevelProjectWithTargetNames", Path.GetFileName(projectFile), targetNames),
766ResourceUtilities.FormatResourceString("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", Path.GetFileName(projectFile)),
792string message = ResourceUtilities.FormatResourceString(success ? "ProjectFinishedSuccess" : "ProjectFinishedFailure", Path.GetFileName(projectFile));
819ResourceUtilities.FormatResourceString("TargetStarted", targetName, Path.GetFileName(projectFile)),
842string message = ResourceUtilities.FormatResourceString(success ? "TargetFinishedSuccess" : "TargetFinishedFailure", targetName, Path.GetFileName(projectFile));
Solution\SolutionWrapperProject.cs (7)
247string solutionFileName = Path.GetFileName(solutionFile);
413deleteTask.SetParameterValue("Files", Path.GetFileName(solutionProjectCache));
757vcbuildTask = AddResolveVCProjectOutputTaskElement(target, Path.Combine(solution.SolutionFileDirectory, Path.GetFileName(solution.SolutionFile)),
969EscapingUtilities.Escape(Path.Combine(solution.SolutionFileDirectory, Path.GetFileName(solution.SolutionFile))),
1207lastFolderInPhysicalPath = Path.GetFileName(aspNetPhysicalPath);
1872propertyGroup.AddNewProperty("SolutionFileName", Path.GetFileName(solution.SolutionFile), true /* treat as literal */);
1875propertyGroup.AddNewProperty("SolutionPath", Path.Combine(solution.SolutionFileDirectory, Path.GetFileName(solution.SolutionFile)), true /* treat as literal */);
Microsoft.Build.Engine.OM.UnitTests (3)
Microsoft.Build.Engine.UnitTests (30)
Construction\SolutionFilter_Tests.cs (10)
236Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build"", """ + Path.Combine("src", Path.GetFileName(microsoftBuild.Path)) + @""", ""{69BE05E2-CBDA-4D27-9733-44E12B0F5627}""
238Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""MSBuild"", """ + Path.Combine("src", Path.GetFileName(msbuild.Path)) + @""", ""{6F92CA55-1D15-4F34-B1FE-56C0B7EB455E}""
240Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build.CommandLine.UnitTests"", """ + Path.Combine("src", Path.GetFileName(commandLineUnitTests.Path)) + @""", ""{0ADDBC02-0076-4159-B351-2BF33FAA46B2}""
242Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build.Tasks.UnitTests"", """ + Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)) + @""", ""{CF999BDE-02B3-431B-95E6-E88D621D9CBF}""
262""" + Path.Combine("src", Path.GetFileName(microsoftBuild.Path)!).Replace("\\", "\\\\") + @""",
263""" + Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)!).Replace("\\", "\\\\") + @"""
268sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(microsoftBuild.Path)!)).ShouldBeTrue();
269sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)!)).ShouldBeTrue();
272(sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(commandLineUnitTests.Path)!))
273|| sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(msbuild.Path)!))
Microsoft.Build.Framework (3)
Microsoft.Build.Tasks.Core (32)
Microsoft.Build.Tasks.UnitTests (51)
Copy_Tests.cs (12)
958string destination1 = Path.Combine(destinationFolder, Path.GetFileName(source1));
959string destination2 = Path.Combine(destinationFolder, Path.GetFileName(source2));
1851string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
1923string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
2025filesActuallyCopied.Select(f => Path.GetFileName(f.Key.Name)).ShouldBe(new[] { "a.cs", "b.cs" }, ignoreOrder: true);
2555string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
2625string destFile1 = Path.Combine(destFolder, Path.GetFileName(sourceFile1));
2626string destFile2 = Path.Combine(destFolder, Path.GetFileName(sourceFile2));
2729string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
2811string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
2877string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
2989Path.Combine(Path.GetDirectoryName(sourceFile2.Path), ".", Path.GetFileName(sourceFile2.Path))) // sourceFile2.Path with a "." inserted before the file name
GetSDKReference_Tests.cs (30)
438Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec), true);
447Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec), true);
456Assert.Equal("A.winmd", Path.GetFileName(t.CopyLocalFiles[0].ItemSpec), true);
465Assert.Equal("E.dll", Path.GetFileName(t.CopyLocalFiles[5].ItemSpec), true);
474Assert.Equal("B.xml", Path.GetFileName(t.CopyLocalFiles[2].ItemSpec));
559Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec), true);
568Assert.Equal("B.winmd", Path.GetFileName(t.References[1].ItemSpec), true);
577Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec), true);
686Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec));
693Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec));
732Assert.Equal("A.dll", Path.GetFileName(t.References[0].ItemSpec), true);
739Assert.Equal("h.dll", Path.GetFileName(t.References[4].ItemSpec), true);
828Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec));
837Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec));
880Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec));
889Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec));
965Assert.Equal("A.dll", Path.GetFileName(t.RedistFiles[0].ItemSpec));
971Assert.Equal("B.dll", Path.GetFileName(t.RedistFiles[1].ItemSpec), true);
977Assert.Equal("B.PRI", Path.GetFileName(t.RedistFiles[2].ItemSpec), true);
983Assert.Equal("C.dll", Path.GetFileName(t.RedistFiles[3].ItemSpec), true);
989Assert.Equal("D.dll", Path.GetFileName(t.RedistFiles[4].ItemSpec), true);
1371Assert.Equal("A.dll", Path.GetFileName(t.RedistFiles[0].ItemSpec), true);
1377Assert.Equal("B.dll", Path.GetFileName(t.RedistFiles[1].ItemSpec), true);
1383Assert.Equal("B.dll", Path.GetFileName(t.RedistFiles[2].ItemSpec), true);
1389Assert.Equal("B.pri", Path.GetFileName(t.RedistFiles[3].ItemSpec), true);
1395Assert.Equal("B.PRI", Path.GetFileName(t.RedistFiles[4].ItemSpec), true);
1401Assert.Equal("C.dll", Path.GetFileName(t.RedistFiles[5].ItemSpec), true);
1407Assert.Equal("D.dll", Path.GetFileName(t.RedistFiles[6].ItemSpec), true);
1416if (Path.GetFileName(path).Equals("C.winmd", StringComparison.OrdinalIgnoreCase))
1432if (Path.GetFileName(path).Equals("A.winmd", StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Utilities.Core (4)
Microsoft.Build.Utilities.UnitTests (2)
Microsoft.Cci.Extensions (3)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Microsoft.DotNet.ArcadeLogging (1)
Microsoft.DotNet.AsmDiff (1)
Microsoft.DotNet.Build.Tasks.Feed (16)
Microsoft.DotNet.Build.Tasks.Feed.Tests (6)
Microsoft.DotNet.Build.Tasks.Installers (14)
Microsoft.DotNet.Build.Tasks.Packaging (15)
Microsoft.DotNet.Build.Tasks.Workloads (8)
Microsoft.DotNet.CodeAnalysis (2)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.Helix.JobSender (3)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.PackageTesting (5)
Microsoft.DotNet.RemoteExecutor (2)
Microsoft.DotNet.SharedFramework.Sdk (10)
Microsoft.DotNet.SignCheck (4)
Microsoft.DotNet.SignCheckLibrary (8)
Microsoft.DotNet.SignTool (8)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.Configuration.FileExtensions (2)
Microsoft.Extensions.DependencyModel (4)
Microsoft.Extensions.FileProviders.Embedded (2)
Microsoft.Extensions.FileSystemGlobbing (2)
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (13)
Microsoft.VisualBasic.Core (10)
MobileBuildTasks (3)
MonoAOTCompiler (9)
MonoTargetsTasks (6)
MSBuild (2)
PresentationBuildTasks (5)
PresentationCore (1)
PresentationFramework (4)
Swaggatherer (1)
System.ComponentModel.TypeConverter (1)
System.Diagnostics.Process (3)
System.Diagnostics.TextWriterTraceListener (1)
System.Formats.Tar (1)
System.IO.Compression.ZipFile (1)
System.IO.FileSystem.Watcher (1)
System.IO.IsolatedStorage (6)
System.Net.Mail (3)
System.Net.WebClient (1)
System.Private.CoreLib (3)
System.Reflection.Metadata (1)
System.Security.Cryptography (1)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
TestExclusionListTasks (12)
src\tasks\AndroidAppBuilder\ApkBuilder.cs (12)
200string fileName = Path.GetFileName(file);
220File.Copy(aotlib, Path.Combine(assetsToZipDirectory, Path.GetFileName(aotlib)));
377.Replace("%EntryPointLibName%", Path.GetFileName(mainLibraryFileName)));
392.Replace("%EntryPointLibName%", Path.GetFileName(mainLibraryFileName))
437dynamicLibs.AddRange(Directory.GetFiles(AppDir, "*.so").Where(file => Path.GetFileName(file) != "libmonodroid.so"));
444string dynamicLibName = Path.GetFileName(dynamicLib);
494logger.LogMessage(MessageImportance.High, $"Adding dex file {Path.GetFileName(dexFile)} as {classesFileName}");
590Utils.RunProcess(logger, aapt, $"remove -v bin/{Path.GetFileName(apkPath)} {file}", workingDir: OutputDir);
591Utils.RunProcess(logger, aapt, $"add -v bin/{Path.GetFileName(apkPath)} {file}", workingDir: OutputDir);
603.Select(Path.GetFileName)
605.Select(file => { Version.TryParse(Path.GetFileName(file), out Version? version); return version; })
621.Select(file => int.TryParse(Path.GetFileName(file).Replace("android-", ""), out int apiLevel) ? apiLevel : -1)
UIAutomationClient (1)
Wasm.Performance.ConsoleHost (1)
WasmAppBuilder (25)
WasmAppBuilder.cs (14)
110MainAssemblyName = Path.GetFileName(MainAssemblyName);
141var finalWebcil = Path.Combine(runtimeAssetsPath, Path.ChangeExtension(Path.GetFileName(assembly), Utils.WebcilInWasmExtension));
150FileCopyChecked(assembly, Path.Combine(runtimeAssetsPath, Path.GetFileName(assembly)), "Assemblies");
157FileCopyChecked(pdb, Path.Combine(runtimeAssetsPath, Path.GetFileName(pdb)), "Assemblies");
163var name = Path.GetFileName(item.ItemSpec);
204assemblyPath = Path.Combine(runtimeAssetsPath, Path.ChangeExtension(Path.GetFileName(assembly), Utils.WebcilInWasmExtension));
209bootConfig.resources.assembly[Path.GetFileName(assemblyPath)] = Utils.ComputeIntegrity(bytes);
218bootConfig.resources.pdb[Path.GetFileName(pdb)] = Utils.ComputeIntegrity(pdb);
231string name = Path.GetFileName(args.fullPath);
249cultureSatelliteResources[Path.GetFileName(finalWebcil)] = Utils.ComputeIntegrity(finalWebcil);
276targetPath = Path.GetFileName(item.ItemSpec);
297var generatedFileName = $"{i++}_{Path.GetFileName(item.ItemSpec)}";
323bootConfig.resources.icu[Path.GetFileName(idfn)] = Utils.ComputeIntegrity(idfn);
415dst = Path.Combine(AppDir!, Path.GetFileName(src));
xunit.console (7)