49 references to GetFiles
aspire (1)
Commands\UpdateCommand.cs (1)
455var oldBackupFiles = Directory.GetFiles(directory, searchPattern);
Aspire.Cli.Tests (2)
Caching\DiskCacheTests.cs (2)
84var files = new DirectoryInfo(diskPath).Exists ? Directory.GetFiles(diskPath, $"{hash}.*.json") : Array.Empty<string>(); 119var files = Directory.GetFiles(diskPath, $"{hash}.*.json");
Aspire.Hosting.Testing.Tests (1)
TestingBuilderTests.cs (1)
41var unexpectedAppHostFiles = Directory.GetFiles(AppContext.BaseDirectory, "TestProject.AppHost.*");
Aspire.Templates.Tests (3)
BuildAndRunTemplateTests.cs (3)
67var projectName = Directory.GetFiles(project.AppHostProjectDirectory, "*.csproj").FirstOrDefault(); 131var projectName = Directory.GetFiles(project.AppHostProjectDirectory, "*.csproj").FirstOrDefault(); 231var projectName = Directory.GetFiles(project.RootDir, "*.csproj").FirstOrDefault();
dotnet-svcutil-lib.Tests (3)
TestInit.cs (3)
180if (!Directory.Exists(pkgPath) || !Directory.GetFiles(pkgPath, "dotnet-svcutil-lib*.nupkg").Any()) 184Assert.True(Directory.GetFiles(pkgPath, "dotnet-svcutil-lib.*.nupkg").Any(), $"dotnet-svcutil-lib*.nupkg not found under {pkgPath}!"); 556if (!Directory.Exists(binDir) || !Directory.GetFiles(binDir, "dotnet-svcutil-lib.*.nupkg").Any())
Microsoft.AspNetCore.App.UnitTests (5)
PackageTests.cs (1)
94foreach (var assembly in Directory.GetFiles(tfmDir, "*.dll"))
SharedFxTests.cs (3)
37var actualAssemblies = Directory.GetFiles(_sharedFxRoot, "*.dll") 61var actualAssemblies = Directory.GetFiles(_sharedFxRoot, "*.dll") 327var sharedFxPath = Directory.GetFiles(packageFolder, "Microsoft.AspNetCore.App.Runtime.*-*." + TestData.GetSharedFxVersion() + ".nupkg").FirstOrDefault();
TargetingPackTests.cs (1)
38var actualAssemblies = Directory.GetFiles(Path.Combine(_targetingPackRoot, "ref", _targetingPackTfm), "*.dll")
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
14395var touchedFiles = Directory.GetFiles(dir.Path, "touched*");
Microsoft.CodeAnalysis.Test.Utilities (1)
SharedResourceHelpers.cs (1)
21foreach (string f in System.IO.Directory.GetFiles(directory, searchfilename))
Microsoft.DotNet.Arcade.Sdk.Tests (1)
RepoWithConditionalProjectsToBuildTests.cs (1)
44var nupkgFiles = Directory.GetFiles(Path.Combine(app.WorkingDirectory, "artifacts", "packages", "Debug", "Shipping"), "*.nupkg");
Microsoft.DotNet.SignCheckLibrary (1)
Verification\MachOVerifier.cs (1)
156foreach (string cert in Directory.GetFiles(tempDir, "codesign*"))
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
26var responseFilePath = Path.Combine(Directory.GetFiles(
NoRemoteCallNotSeekableHandler.cs (1)
29var responseFilePath = Path.Combine(Directory.GetFiles(
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\NoRemoteCallHandler.cs (1)
22var responseFilePath = Path.Combine(Directory.GetFiles(
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
EmitterTests.cs (1)
131foreach (var file in Directory.GetFiles("TestClasses", "*.cs"))
Microsoft.ML.Data (2)
Utilities\StreamUtils.cs (2)
102var files = Directory.GetFiles(dir, right).OrderBy(f => f).ToArray(); 133var files = Directory.GetFiles(path, Path.GetFileName(currentPattern)).OrderBy(f => f).ToArray();
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
433modelFilePaths = Directory.GetFiles(modelDir, DefaultModelFileNames.TmpMlnetModel + "*");
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
1434Return IO.Directory.GetFiles(directory, wildCard)
PresentationCore (1)
MS\Internal\FontCache\FontSourceCollection.cs (1)
94files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension);
RunTests (1)
Program.cs (1)
324else if (Directory.GetFiles(targetFrameworkDirectory, searchPattern: "*.UnitTests.dll") is { Length: > 0 } matches)
System.ComponentModel.Composition (13)
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (13)
47/// Possible exceptions that can be thrown are any that <see cref="Directory.GetFiles(string, string)"/> or 81/// Possible exceptions that can be thrown are any that <see cref="Directory.GetFiles(string, string)"/> or 120/// Possible exceptions that can be thrown are any that <see cref="Directory.GetFiles(string, string)"/> or 158/// Possible exceptions that can be thrown are any that <see cref="Directory.GetFiles(string, string)"/> or 201/// Possible exceptions that can be thrown are any that <see cref="Directory.GetFiles(string, string)"/> or 209/// Any valid searchPattern that <see cref="Directory.GetFiles(string, string)"/> will accept. 243/// Possible exceptions that can be thrown are any that <see cref="Directory.GetFiles(string, string)"/> or 288/// Possible exceptions that can be thrown are any that <see cref="Directory.GetFiles(string, string)"/> or 296/// Any valid searchPattern that <see cref="Directory.GetFiles(string, string)"/> will accept. 338/// Possible exceptions that can be thrown are any that <see cref="Directory.GetFiles(string, string)"/> or 346/// Any valid searchPattern that <see cref="Directory.GetFiles(string, string)"/> will accept. 560/// Possible exceptions that can be thrown are any that <see cref="Directory.GetFiles(string, string)"/> or 729string[] files = Directory.GetFiles(_fullPath, _searchPattern);
System.IO.Ports (4)
System\IO\Ports\SerialPort.Unix.cs (4)
97foreach (string name in Directory.GetFiles("/dev", "tty.*")) 107foreach (string name in Directory.GetFiles("/dev", "cu.*")) 122foreach (string name in Directory.GetFiles("/dev", "ttyd*")) 130foreach (string name in Directory.GetFiles("/dev", "cuau*"))
Templates.Tests (2)
ByteOrderMarkTest.cs (2)
43var files = (IEnumerable<string>)Directory.GetFiles(templateDirectoryPath, "*.json"); 44files = files.Concat(Directory.GetFiles(templateDirectoryPath, "*.js"));
xunit.console (1)
ConsoleRunner.cs (1)
138foreach (var dllFile in Directory.GetFiles(runnerPath, "*.dll").Select(f => Path.Combine(runnerPath, f)))