642 references to FileInfo
aspire (26)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
366var fileInfo = new FileInfo(socketPath);
Commands\InitCommand.cs (2)
435var appHostProjectFile = new FileInfo(Path.Combine(finalAppHostDir, $"{appHostProjectDir.Name}.csproj")); 436var serviceDefaultsProjectFile = new FileInfo(Path.Combine(finalServiceDefaultsDir, $"{serviceDefaultsProjectDir.Name}.csproj"));
Commands\Sdk\SdkDumpCommand.cs (1)
82var projectFile = new FileInfo(arg);
DotNet\DotNetCliRunner.cs (1)
1097projects.Add(new FileInfo(projectPath));
Packaging\NuGetConfigMerger.cs (1)
69var targetFile = new FileInfo(targetPath);
Packaging\TemporaryNuGetConfig.cs (2)
25var configFile = new FileInfo(tempFilePath); 35var configFile = new FileInfo(targetPath);
Program.cs (2)
268var globalSettingsFile = new FileInfo(globalSettingsFilePath); 561var globalSettingsFile = new FileInfo(GetGlobalSettingsPath(logger));
Projects\DotNetBasedAppHostServerProject.cs (1)
425var projectFile = new FileInfo(Path.Combine(_projectModelPath, ProjectFileName));
Projects\GuestAppHostProject.cs (1)
176var settingsFile = new FileInfo(settingsFilePath);
Projects\PrebuiltAppHostServer.cs (1)
244new FileInfo(projectFilePath),
Projects\ProjectLocator.cs (7)
196var appHostFile = new FileInfo(qualifiedPath); 214var settingsFile = new FileInfo(ConfigurationHelper.BuildPathToSettingsJsonFile(searchDirectory.FullName)); 225var appHostFile = new FileInfo(qualifiedAppHostPath); 338return await UseOrFindAppHostProjectFileAsync(new FileInfo(parentDirectory.FullName), multipleAppHostProjectsFoundBehavior, createSettingsFile, cancellationToken); 442var settingsFile = new FileInfo(configurationService.GetSettingsFilePath(isGlobal: false)); 455return new FileInfo(newConfigPath); 458var aspireConfigFile = new FileInfo(Path.Combine(legacySettingsRootDirectory.FullName, AspireConfigFile.FileName));
Projects\ProjectUpdater.cs (3)
52var projectName = new FileInfo(projectGroup.Key).Name; 638var referencedProjectFile = new FileInfo(referencedProjectPath); 702return new CentralPackageManagementInfo(true, new FileInfo(directoryPackagesPropsPath));
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
75var appHostProject = _projectFactory.TryGetProject(new FileInfo(Path.Combine(outputPath, "apphost.ts")));
Utils\ConfigurationHelper.cs (2)
37localSettingsFile = new FileInfo(newSettingsPath); 47localSettingsFile = new FileInfo(legacySettingsPath);
Aspire.Cli.Tests (220)
Commands\DotNetSdkCheckTests.cs (1)
145? new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, appHostFileName))
Commands\ExtensionInternalCommandTests.cs (3)
60var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "MyApp.AppHost.csproj")); 101var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "App1.AppHost.csproj")); 102var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "App2.AppHost.csproj"));
Commands\InitCommandTests.cs (11)
27var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 30var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectFileName)); 66var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 126new() { ProjectFile = new FileInfo("/test/project1.csproj"), TargetFramework = "net8.0" }, 127new() { ProjectFile = new FileInfo("/test/project2.csproj"), TargetFramework = "net9.0" }, 128new() { ProjectFile = new FileInfo("/test/project3.csproj"), TargetFramework = "net10.0" } 140new() { ProjectFile = new FileInfo("/test/project1.csproj"), TargetFramework = "net8.0" }, 141new() { ProjectFile = new FileInfo("/test/project2.csproj"), TargetFramework = "net9.0" } 150new() { ProjectFile = new FileInfo("/test/project1.csproj"), TargetFramework = "net8.0" } 164var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 219var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln"));
Commands\RestoreCommandTests.cs (2)
18var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 52var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Commands\RunCommandTests.cs (11)
478var appHostProjectFile = new FileInfo(appHostProjectPath); 938var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 988var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1034var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1084var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1129var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1175var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1221var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1268return Task.FromResult(new AppHostProjectSearchResult(new FileInfo("/tmp/apphost.cs"), [new FileInfo("/tmp/apphost.cs")])); 1274return Task.FromResult<FileInfo?>(new FileInfo("/tmp/apphost.cs"));
Commands\SecretCommandTests.cs (2)
21var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 45var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"));
Commands\UpdateCommandTests.cs (8)
223return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 296return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 504return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 571return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 637return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 695return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 773return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 818return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")));
Configuration\ConfigurationHelperTests.cs (1)
20var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName));
Configuration\ConfigurationServiceTests.cs (1)
18var globalSettingsFile = new FileInfo(Path.Combine(globalSettingsDir.FullName, AspireConfigFile.FileName));
DotNet\DotNetCliRunnerTests.cs (34)
32var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 72var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 101var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 129var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 168var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 197var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 226var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 264var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 305var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 383var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 423var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 465var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 512var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 560var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 613var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 680var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 746var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 819var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 824var project1File = new FileInfo(Path.Combine(project1Dir.FullName, "Project1.csproj")); 828var project2File = new FileInfo(Path.Combine(project2Dir.FullName, "Project2.csproj")); 866var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 869var referencedProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Service.csproj")); 899var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 945var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 990var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1035var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1086var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1135var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1183var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1219var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1398var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1436var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1474var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1514var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Packaging\NuGetConfigMergerSnapshotTests.cs (1)
49return new FileInfo(path);
Packaging\NuGetConfigMergerTests.cs (1)
26return new FileInfo(path);
Projects\DefaultLanguageDiscoveryTests.cs (4)
109var file = new FileInfo(Path.Combine(Path.GetTempPath(), fileName)); 124var file = new FileInfo(Path.Combine(Path.GetTempPath(), fileName)); 135var file = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.go")); 148var file = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.go"));
Projects\ExtensionGuestLauncherTests.cs (6)
26new FileInfo("/tmp/apphost.ts"), 51var appHostFile = new FileInfo("/home/user/project/apphost.ts"); 68var launcher = new ExtensionGuestLauncher(service, new FileInfo("/tmp/apphost.ts"), debug: true); 83var launcher = new ExtensionGuestLauncher(service, new FileInfo("/tmp/apphost.ts"), debug: false); 102var launcher = new ExtensionGuestLauncher(service, new FileInfo("/tmp/apphost.ts"), debug: false); 119var launcher = new ExtensionGuestLauncher(service, new FileInfo("/tmp/apphost.ts"), debug: false);
Projects\FallbackProjectParserTests.cs (14)
36var result = parser.ParseProject(new FileInfo(projectFile)); 61var result = parser.ParseProject(new FileInfo(projectFile)); 86var result = parser.ParseProject(new FileInfo(projectFile)); 111var result = parser.ParseProject(new FileInfo(projectFile)); 137var result = parser.ParseProject(new FileInfo(projectFile)); 163var result = parser.ParseProject(new FileInfo(projectFile)); 201parser.ParseProject(new FileInfo(projectFile))); 222var result = parser.ParseProject(new FileInfo(projectFile)); 252var result = parser.ParseProject(new FileInfo(projectFile)); 275var result = parser.ParseProject(new FileInfo(projectFile)); 299var result = parser.ParseProject(new FileInfo(projectFile)); 322var result = parser.ParseProject(new FileInfo(projectFile)); 344var result = parser.ParseProject(new FileInfo(projectFile)); 363parser.ParseProject(new FileInfo(projectFile)));
Projects\GuestRuntimeTests.cs (12)
74var appHostFile = new FileInfo("/tmp/apphost.ts"); 93var appHostFile = new FileInfo("/tmp/apphost.ts"); 108var appHostFile = new FileInfo("/tmp/apphost.ts"); 125var appHostFile = new FileInfo("/tmp/apphost.ts"); 140var appHostFile = new FileInfo("/tmp/apphost.ts"); 159var appHostFile = new FileInfo("/tmp/apphost.ts"); 180var appHostFile = new FileInfo("/tmp/apphost.ts"); 199var appHostFile = new FileInfo("/home/user/project/apphost.ts"); 218var appHostFile = new FileInfo("/home/user/project/apphost.ts"); 236var appHostFile = new FileInfo("/tmp/apphost.ts"); 256var appHostFile = new FileInfo("/tmp/apphost.ts"); 344var appHostFile = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.ts"));
Projects\ProjectLocatorTests.cs (56)
37var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 55var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 59var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 63var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 89var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 93var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 97var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 120var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 125var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 161var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 165var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 191var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost1.csproj")); 194var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost2.csproj")); 209var appHostProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 212var webProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "WebProject.csproj")); 255var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectFileExtension}")); 270var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 287var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 297var globalSettingsFile = new FileInfo(globalSettingsFilePath); 307var settingsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName)); 326var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "MyAppHost.csproj")); 331var decoyAppHostProjectFile = new FileInfo(Path.Combine(decoyAppHostDirectory.FullName, "DecoyAppHost.csproj")); 339var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 347var globalSettingsFile = new FileInfo(globalSettingsFilePath); 375var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 400var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs")); 426var appHostFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "apphost.cs")); 436var csprojFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "RegularProject.csproj")); 441var validAppHostFile = new FileInfo(Path.Combine(dirWithOnlyAppHost.FullName, "apphost.cs")); 481var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 501var csprojFile = new FileInfo(Path.Combine(subDir1.FullName, "AppHost.csproj")); 506var appHostFile = new FileInfo(Path.Combine(subDir2.FullName, "apphost.cs")); 542var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 566var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 587var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 598var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "SomeProject.csproj")); 613var txtFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "readme.txt")); 633var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 638var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs")); 743var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyAppHost.csproj")); 762var directoryAsFileInfo = new FileInfo(projectDirectory.FullName); 780var directoryAsFileInfo = new FileInfo(projectDirectory.FullName); 797var projectFile1 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project1.csproj")); 799var projectFile2 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project2.csproj")); 819var directoryAsFileInfo = new FileInfo(projectDirectory.FullName); 834var appHostFile = new FileInfo(Path.Combine(projectDirectory.FullName, "apphost.cs")); 848var directoryAsFileInfo = new FileInfo(projectDirectory.FullName); 862var projectFile = new FileInfo(Path.Combine(subDirectory.FullName, "Mongo.AppHost.csproj")); 881var directoryAsFileInfo = new FileInfo(topDirectory.FullName); 901var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj")); 906var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.cs")); 944var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj")); 948var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs")); 986var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs")); 1009var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1030var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Projects\ProjectUpdaterTests.cs (49)
30var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 33var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 36var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 140var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 143var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 146var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 271var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 274var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 277var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 421var sharedProjectFile = new FileInfo(Path.Combine(sharedProjectFolder.FullName, "SharedProject.csproj")); 424var projectAFile = new FileInfo(Path.Combine(projectAFolder.FullName, "ProjectA.csproj")); 427var projectBFile = new FileInfo(Path.Combine(projectBFolder.FullName, "ProjectB.csproj")); 430var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "DiamondTest.AppHost.csproj")); 554var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 557var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 559var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 690var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 692var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 792var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 794var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 903var projectFile = new FileInfo("/path/to/MyProject.csproj"); 925var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 927var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1038var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1040var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1162var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1164var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1276var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1278var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1387var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1481var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1483var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1583var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1662var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1744var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 1827var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 1909var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1995var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2073var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2151var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2258var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2260var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2398await ProjectUpdater.UpdateSdkVersionInCsprojAppHostAsync(new FileInfo(projectFile), package).DefaultTimeout(); 2425await ProjectUpdater.UpdateSdkVersionInCsprojAppHostAsync(new FileInfo(projectFile), package).DefaultTimeout(); 2457await ProjectUpdater.UpdateSdkVersionInCsprojAppHostAsync(new FileInfo(projectFile), package).DefaultTimeout(); 2488await ProjectUpdater.UpdateSdkVersionInCsprojAppHostAsync(new FileInfo(projectFile), package).DefaultTimeout(); 2515await ProjectUpdater.UpdateSdkVersionInCsprojAppHostAsync(new FileInfo(projectFile), package).DefaultTimeout(); 2543await ProjectUpdater.UpdateSdkVersionInCsprojAppHostAsync(new FileInfo(projectFile), package).DefaultTimeout(); 2593await ProjectUpdater.UpdateSdkVersionInCsprojAppHostAsync(new FileInfo(projectFile), package).DefaultTimeout();
TestServices\TestProjectLocator.cs (1)
31return new FileInfo(fakeProjectFilePath);
Utils\CliTestHelper.cs (2)
73var globalSettingsFile = new FileInfo(globalSettingsFilePath); 333return new FileInfo(globalSettingsFilePath);
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
55installTemplates = packageIdAndPaths.Where(t => new FileInfo(t.path).LastWriteTimeUtc > dirWriteTime).Any();
Aspire.Hosting (3)
Dcp\KubernetesService.cs (2)
588var fileInfo = new FileInfo(locations.DcpKubeconfigPath); 592fileInfo = new FileInfo(locations.DcpKubeconfigPath);
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
83var projectFileInfo = new FileInfo(projectMetadata.ProjectPath);
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
83var projectFileInfo = new FileInfo(projectMetadata.ProjectPath);
Aspire.Hosting.Maui (2)
Utilities\MauiEnvironmentHelper.cs (2)
162var info = new FileInfo(file); 317var info = new FileInfo(file);
Aspire.Hosting.Tests (3)
Publishing\ResourceContainerImageManagerTests.cs (3)
711var fileInfo = new FileInfo(tempFile); 872annotation.BuildSecrets["FILE_SECRET"] = new FileInfo(tempSecretFile); 889Assert.Equal(new FileInfo(tempSecretFile).FullName, fakeContainerRuntime.CapturedBuildSecrets["FILE_SECRET"].Value);
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
55installTemplates = packageIdAndPaths.Where(t => new FileInfo(t.path).LastWriteTimeUtc > dirWriteTime).Any();
BuildValidator (1)
Program.cs (1)
316var originalBinary = new FileInfo(assemblyInfo.FilePath);
csc (1)
src\Compilers\Shared\NativeMethods.cs (1)
142return new FileInfo(TrimWin32ExtendedPrefix(sb.ToString()));
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
122return new FileInfo(project);
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
220FileInfo fileInfo = new FileInfo(value); 425var file = new FileInfo(path);
dotnet-svcutil-lib (9)
CommandProcessorOptions.cs (1)
463this.OutputFile = new FileInfo(outputFile);
Shared\MSBuildProj.cs (3)
316fullPath = new FileInfo(Path.Combine(msbuildProj.DirectoryPath, binReference)).FullName; 802var assetsFile = new FileInfo(Path.Combine(this.DirectoryPath, "obj", "project.assets.json")).FullName; 1012.Select(f => new FileInfo(f))
Shared\Options\ApplicationOptions.cs (1)
163return Deserialize<TOptionsBase, OptionsSerializer<TOptionsBase>>(null, new FileInfo(filePath), throwOnError);
Shared\Options\OptionValueParser.cs (1)
60value = CreateValue<FileInfo>(() => new FileInfo(stringValue), option, stringValue);
Shared\Options\UpdateOptions.cs (2)
94this.OutputFile = new FileInfo(relPath); 112this.OutputFile = new FileInfo(Path.Combine(optionsFileDirectory.FullName, this.OutputFile.OriginalPath()));
Shared\ProjectPropertyResolver.cs (1)
207.Select(f => new FileInfo(f));
GenerateDocumentationAndConfigFiles (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
HelixTestTasks (1)
GroupWorkItems.cs (1)
43size = new FileInfo(item.ItemSpec).Length;
IIS.ShadowCopy.Tests (1)
ShadowCopyTests.cs (1)
415var fileInfo = new FileInfo(filePath)
illink (1)
Metrics (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Metrics.Legacy (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
DataProtectionProviderTests.cs (1)
74var file = new FileInfo(newFileName);
Microsoft.AspNetCore.FunctionalTests (1)
WebHostFunctionalTests.cs (1)
242var solutionFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "DefaultBuilder.slnf"));
Microsoft.AspNetCore.Http (1)
SendFileFallback.cs (1)
25var fileInfo = new FileInfo(filePath);
Microsoft.AspNetCore.Http.Results (1)
PhysicalFileHttpResult.cs (1)
166var fileInfo = new FileInfo(path);
Microsoft.AspNetCore.HttpLogging (2)
FileLoggerProcessor.cs (2)
189var fileInfo = new FileInfo(fullName); 216fileInfo = new FileInfo(fullName);
Microsoft.AspNetCore.InternalTesting (2)
TestPathUtilities.cs (2)
19var projectFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, $"{solution}.slnf")); 25projectFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "AspNetCore.slnx"));
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\PhysicalFileResultExecutor.cs (1)
125var fileInfo = new FileInfo(path);
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
527var depsFile = new FileInfo(Path.Combine(AppContext.BaseDirectory, depsFileName));
Microsoft.AspNetCore.Razor.Language.UnitTests (6)
DefaultRazorProjectItemTest.cs (6)
20var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); 40var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); 53var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); 66var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); 79var fileInfo = new FileInfo(Path.Combine(TestFolder, "Views", "FileDoesNotExist.cshtml")); 93var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml"));
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\TestProject.cs (1)
171var fileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, fileName));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ResponseSendFileTests.cs (1)
32FileLength = new FileInfo(AbsoluteFilePath).Length;
Microsoft.Build (3)
BackEnd\Components\Scheduler\Scheduler.cs (2)
1128System.IO.FileInfo f = new FileInfo(_configCache[unscheduledRequest.BuildRequest.ConfigurationId].ProjectFullPath); 1170System.IO.FileInfo f = new FileInfo(_configCache[unscheduledRequest.BuildRequest.ConfigurationId].ProjectFullPath);
Construction\ProjectRootElement.cs (1)
1981FileInfo fileInfo = new FileInfo(path);
Microsoft.Build.CommandLine.UnitTests (6)
PerfLog_Tests.cs (1)
53files.ShouldAllBe(f => new FileInfo(f).Length > 0);
XMake_Tests.cs (5)
2791new FileInfo(binLog1).Length.ShouldBeGreaterThan(0, "First binlog should not be empty"); 2792new FileInfo(binLog2).Length.ShouldBeGreaterThan(0, "Second binlog should not be empty"); 2793new FileInfo(binLog3).Length.ShouldBeGreaterThan(0, "Third binlog should not be empty"); 2869long size1 = new FileInfo(binLog1).Length; 2870long size2 = new FileInfo(binLog2).Length;
Microsoft.Build.EndToEnd.Tests (1)
MultithreadedExecution_Tests.cs (1)
140new FileInfo(binlogPath).Length.ShouldBeGreaterThan(0, "Binary log file was created but is empty.");
Microsoft.Build.Engine.OM.UnitTests (3)
Definition\ProjectItem_Tests.cs (1)
324FileInfo info = new FileInfo(path);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (2)
51var lwtBefore = new FileInfo(proj1Path).LastWriteTimeUtc; 70var lwtAfter = new FileInfo(proj1Path).LastWriteTimeUtc;
Microsoft.Build.Engine.UnitTests (9)
BackEnd\BuildManager_Tests.cs (1)
4703.Select(path => new FileInfo(path))
BackEnd\TargetBuilder_Tests.cs (6)
224var fileA = new FileInfo(files.CreatedFiles[0]); 225var fileB = new FileInfo(files.CreatedFiles[1]); 226var fileC = new FileInfo(files.CreatedFiles[2]); 268var fileA = new FileInfo(files.CreatedFiles[0]); 269var fileB = new FileInfo(files.CreatedFiles[1]); 270var fileC = new FileInfo(files.CreatedFiles[2]);
FileLogger_Tests.cs (2)
376var result = new FileInfo(logFile); 378Assert.Equal(0, new FileInfo(logFile).Length);
Microsoft.Build.Framework (3)
BuildEnvironmentHelper.cs (1)
561currentMSBuildExeFile = new FileInfo(currentMSBuildExePath);
FileUtilities.cs (2)
453FileInfo file = new(testFilePath); 1210fileInfo = new FileInfo(filePath);
Microsoft.Build.Framework.UnitTests (1)
FileUtilities_Tests.cs (1)
196Assert.Equal(info.LastWriteTime, new FileInfo(file).LastWriteTime);
Microsoft.Build.Tasks.CodeAnalysis (3)
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
306FileInfo actualPdbInfo = new FileInfo(actualPdb); 314FileInfo desiredPdbInfo = new FileInfo(desiredLocation);
src\Compilers\Shared\NativeMethods.cs (1)
142return new FileInfo(TrimWin32ExtendedPrefix(sb.ToString()));
Microsoft.Build.Tasks.CodeAnalysis.Sdk (3)
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
306FileInfo actualPdbInfo = new FileInfo(actualPdb); 314FileInfo desiredPdbInfo = new FileInfo(desiredLocation);
src\Compilers\Shared\NativeMethods.cs (1)
142return new FileInfo(TrimWin32ExtendedPrefix(sb.ToString()));
Microsoft.Build.Tasks.Core (13)
BootstrapperUtil\BootstrapperBuilder.cs (3)
225var fi = new FileInfo(de.Value); 1514var fi = new FileInfo(packageFileSource.Value); 1620var fi = new FileInfo(filePath);
DownloadFile.cs (1)
185var destinationFile = new FileInfo(Path.Combine(destinationDirectory.FullName, filename));
FileState.cs (3)
127Length = new FileInfo(_filename).Length; 144var fileInfo = new FileInfo(_filename); 195var length = (new FileInfo(_filename)).Length;
ManifestUtil\Util.cs (1)
220FileInfo fi = new FileInfo(path);
Move.cs (1)
200var info = new FileInfo(file);
ResGenDependencies.cs (1)
373var outputFile = new FileInfo(FileUtilities.FixFilePath(outputFileName));
SdkToolsPathUtility.cs (1)
150return new FileInfo(filePath).Exists;
Unzip.cs (1)
192FileInfo destinationPath = new(fullDestinationPath);
ZipDirectory.cs (1)
76FileInfo destinationFile = new FileInfo(destinationFileAbsolutePath);
Microsoft.Build.Tasks.UnitTests (49)
ConvertToAbsolutePath_Tests.cs (3)
26FileInfo testFile = new FileInfo(fileName); 58FileInfo testFile = new FileInfo(fileName); 88FileInfo testFile = new FileInfo(fileName);
Copy_Tests.cs (2)
607FileInfo sourcefi = new FileInfo(source); 610FileInfo destinationfi = new FileInfo(destination);
DownloadFile_Tests.cs (3)
79FileInfo file = new FileInfo(Path.Combine(folder.Path, "foo.txt")); 125FileInfo file = new FileInfo(Path.Combine(folder.Path, filename)); 160FileInfo file = new FileInfo(Path.Combine(folder.Path, filename));
FileStateTests.cs (22)
56delegate () { var x = new FileInfo(new String('x', 5000)).LastWriteTime; }, 68FileInfo info = new FileInfo(file); 87FileInfo info = new FileInfo(file); 114FileInfo info = new FileInfo(file); 133FileInfo info = new FileInfo(file); 152FileInfo info = new FileInfo(file); 171FileInfo info = new FileInfo(file); 190FileInfo info = new FileInfo(file); 216FileInfo info = new FileInfo(file); 242FileInfo info = new FileInfo(file); 268FileInfo info = new FileInfo(file); 296FileInfo info = new FileInfo(file); 321FileInfo info = new FileInfo(file); 331(new FileInfo(file)).IsReadOnly = false; 339Assert.Equal(new FileInfo(Path.GetTempPath()).Exists, new FileState(TestPath(Path.GetTempPath())).FileExists); 346Assert.Equal(new FileInfo(Path.GetTempPath()).IsReadOnly, new FileState(TestPath(Path.GetTempPath())).IsReadOnly); 352Assert.Equal(new FileInfo(Path.GetTempPath()).LastWriteTime, new FileState(TestPath(Path.GetTempPath())).LastWriteTime); 358Assert.Equal(new FileInfo(Path.GetTempPath()).LastWriteTimeUtc, new FileState(TestPath(Path.GetTempPath())).LastWriteTimeUtcFast); 364Helpers.VerifyAssertThrowsSameWay(delegate () { var x = new FileInfo(Path.GetTempPath()).Length; }, delegate () { var x = new FileState(TestPath(Path.GetTempPath())).Length; }); 374Assert.Equal(new FileInfo(file).LastWriteTime, new FileState(TestPath(file)).LastWriteTime); 384Assert.Equal(new FileInfo(file).LastWriteTimeUtc, new FileState(TestPath(file)).LastWriteTimeUtcFast); 392Helpers.VerifyAssertThrowsSameWay(delegate () { var x = new FileInfo(file).Length; }, delegate () { var x = new FileState(TestPath(file)).Length; });
FindUnderPath_Tests.cs (1)
102testFile = new FileInfo(fileName);
Move_Tests.cs (12)
33FileInfo file = new FileInfo(sourceFile); 54Assert.True(((new FileInfo(destinationFile)).Attributes & FileAttributes.ReadOnly) == 0); // should have cleared r/o bit 79FileInfo file = new FileInfo(sourceFile); 101Assert.True(((new FileInfo(destinationFile)).Attributes & FileAttributes.ReadOnly) == 0); // should have cleared r/o bit 107FileInfo file = new FileInfo(sourceFile); 225FileInfo file = new FileInfo(destinationFile); 246Assert.True(((new FileInfo(destinationFile)).Attributes & FileAttributes.ReadOnly) != 0); // should still be r/o 252FileInfo file = new FileInfo(destinationFile); 334FileInfo file = new FileInfo(destinationFile); 356Assert.True(((new FileInfo(destinationFile)).Attributes & FileAttributes.ReadOnly) == 0); // readonly bit should not be set 389FileInfo file = new FileInfo(destinationFile); 411Assert.True(((new FileInfo(destinationFile)).Attributes & FileAttributes.ReadOnly) == 0); // should have cleared r/o bit
Unzip_Tests.cs (2)
31new FileInfo(file1.Path).IsReadOnly = true; 195new FileInfo(file1.Path).IsReadOnly = true;
XslTransformation_Tests.cs (4)
978Assert.NotEqual(new FileInfo(xmlMultiPaths[0].ItemSpec).Length, new FileInfo(xmlMultiPaths[1].ItemSpec).Length); 979Assert.NotEqual(new FileInfo(outputMultiPaths[0].ItemSpec).Length, new FileInfo(outputMultiPaths[1].ItemSpec).Length);
Microsoft.Build.UnitTests.Shared (3)
EnvironmentProvider.cs (2)
91FileInfo fi = new FileInfo(dotnetExeFromPath); 95fi = new FileInfo(dotnetExeFromPath);
TestEnvironment.cs (1)
549foreach (FileInfo file in newFiles.Except(_originalFiles).Select(f => new FileInfo(f)))
Microsoft.Build.Utilities.Core (2)
ToolLocationHelper.cs (2)
3364bool exists = new FileInfo(filePath).Exists; 3532bool exists = new FileInfo(filePath).Exists;
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
271ClearReadOnlyFlagOnFile(new FileInfo(shadowCopyPath));
FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.Analyzers (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
8800Assert.True(new FileInfo(exe.Path).Length < oldSize); 8801Assert.True(new FileInfo(pdb.Path).Length < oldSize);
Microsoft.CodeAnalysis.Features (6)
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (1)
263var fileInfo = new FileInfo(str);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
195new FileInfo(fileInfo.TemporaryFilePath).IsReadOnly = true;
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
93new FileInfo(filePath).IsReadOnly = true;
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (3)
182var databaseFileInfo = new FileInfo( 381IOUtilities.PerformIO(() => _service._ioService.Delete(new FileInfo(tempFilePath))); 387=> new(Path.ChangeExtension(databaseFileInfo.FullName, ".bin"));
Microsoft.CodeAnalysis.InteractiveHost (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
ExportProviderBuilderTests.cs (1)
143var fileInfo = new FileInfo(tempFile.Path);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\DefaultRazorProjectItem.cs (1)
55public FileInfo File => _fileInfo ??= new(FilePath);
Microsoft.CodeAnalysis.Remote.Razor.UnitTests (2)
RemoteMefCompositionTest.cs (2)
63Assert.True(new FileInfo(cacheFile).Length > 35); 88Assert.True(new FileInfo(cacheFile).Length > 35);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
617StripReadOnlyAttributeFromFile(new FileInfo(shadowCopyPath));
Microsoft.CodeAnalysis.Test.Utilities (1)
AssemblyLoadTestFixture.cs (1)
547var fileInfo = new FileInfo(tempFile.Path);
Microsoft.CodeAnalysis.Workspaces (4)
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
271ClearReadOnlyFlagOnFile(new FileInfo(shadowCopyPath));
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
NetCoreTests.cs (1)
121var buildLogInfo = new FileInfo(buildLogPath);
Microsoft.Data.Analysis.Tests (1)
test\Microsoft.ML.TestFramework\BaseTestClass.cs (1)
55var currentAssemblyLocation = new FileInfo(typeof(BaseTestClass).Assembly.Location);
Microsoft.DotNet.Build.Tasks.Feed (5)
src\AzureStorageExtensions.cs (1)
35var localFileSize = new FileInfo(file).Length;
src\PublishArtifactsInManifestBase.cs (2)
800FileInfo pdbStagingPath = new(Path.Combine(pdbStagePath, subPath)); 828FileInfo looseFileStagePath = new(Path.Combine(pdbStagePath, relativePath));
src\PushToBuildStorage.cs (2)
564FileInfo destFile = new(destFileName); 598if (new FileInfo(sourceFileName).IsReadOnly)
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageIndex.cs (1)
38packageIndexFiles.Select(packageIndexFile => new FileInfo(packageIndexFile))
Microsoft.DotNet.Build.Tasks.Packaging.Tests (2)
PackageIndexTests.cs (2)
52long previousLength = new FileInfo(packageIndexFile).Length; 56var newFileInfo = new FileInfo(packageIndexFile);
Microsoft.DotNet.Build.Tasks.Workloads (1)
Swix\MsiSwixProject.wix.cs (1)
112FileInfo fileInfo = new(_msi.ItemSpec);
Microsoft.DotNet.Helix.JobSender (3)
Payloads\ArchivePayload.cs (2)
21Archive = new FileInfo(pathToArchive); 36var alreadyUploadedFile = new FileInfo($"{Archive.FullName}.payload");
Payloads\DirectoryPayload.cs (1)
46var alreadyUploadedFile = new FileInfo(basePath + ".payload");
Microsoft.DotNet.Helix.Sdk (1)
CommandPayload.cs (1)
56var scriptFile = new FileInfo(Path.Combine(Directory.FullName, name));
Microsoft.DotNet.Open.Api.Tools.Tests (41)
OpenApiAddFileTests.cs (6)
85var csproj = new FileInfo(project.Project.Path); 118var csproj = new FileInfo(project.Project.Path); 138var csproj = new FileInfo(project.Project.Path); 158var csproj = new FileInfo(project.Project.Path); 178var csproj = new FileInfo(project.Project.Path); 203var csproj = new FileInfo(project.Project.Path);
OpenApiAddProjectTests.cs (2)
44using var csprojStream = new FileInfo(project.Project.Path).OpenRead(); 102using var csprojStream = new FileInfo(project.Project.Path).OpenRead();
OpenApiAddURLTests.cs (26)
28using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 39using (var jsonStream = new FileInfo(jsonFile).OpenRead()) 61using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 72using (var jsonStream = new FileInfo(jsonFile).OpenRead()) 94using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 105using (var jsonStream = new FileInfo(jsonFile).OpenRead()) 127using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 138using (var jsonStream = new FileInfo(jsonFile).OpenRead()) 159using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 170using (var jsonStream = new FileInfo(jsonFile).OpenRead()) 191using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 202using (var jsonStream = new FileInfo(firstJsonFile).OpenRead()) 217using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 230using (var jsonStream = new FileInfo(secondJsonFile).OpenRead()) 251using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 262using (var jsonStream = new FileInfo(resultFile).OpenRead()) 283using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 294using (var jsonStream = new FileInfo(resultFile).OpenRead()) 315using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 326using (var jsonStream = new FileInfo(resultFile).OpenRead()) 348using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 359using (var jsonStream = new FileInfo(resultFile).OpenRead()) 373using (var csprojStream = new FileInfo(project.Project.Path).OpenRead()) 384using (var jsonStream = new FileInfo(resultFile).OpenRead()) 408var csproj = new FileInfo(project.Project.Path); 434using (var csprojStream = new FileInfo(project.Project.Path).OpenRead())
OpenApiRemoveTests.cs (7)
32var csproj = new FileInfo(Path.Join(_tempDir.Root, "testproj.csproj")); 47csproj = new FileInfo(Path.Join(_tempDir.Root, "testproj.csproj")); 75var csproj = new FileInfo(Path.Join(_tempDir.Root, "testproj.csproj")); 90csproj = new FileInfo(Path.Join(_tempDir.Root, "testproj.csproj")); 124using (var csprojStream = new FileInfo(Path.Join(_tempDir.Root, "testproj.csproj")).OpenRead()) 138using (var csprojStream = new FileInfo(Path.Join(_tempDir.Root, "testproj.csproj")).OpenRead()) 177var csproj = new FileInfo(Path.Join(_tempDir.Root, "testproj.csproj"));
Microsoft.DotNet.RemoteExecutor (1)
RemoteInvokeHandle.cs (1)
229FileInfo exceptionFileInfo = new FileInfo(Options.ExceptionFile);
Microsoft.DotNet.SignTool (6)
src\BatchSignUtil.cs (2)
247FileInfo fileInfo = new FileInfo(file.FullPath); 638var fileInfo = new FileInfo(sigFilePath);
src\ZipData.cs (4)
318if (new FileInfo(path).LinkTarget != null) 359if (new FileInfo(path).LinkTarget != null) 461if (new FileInfo(path).LinkTarget != null) 504if (new FileInfo(path).LinkTarget != null)
Microsoft.DotNet.SignTool.Tests (3)
SignToolTests.cs (3)
461var fileInfo = new FileInfo(layoutPath); 530var fileInfo = new FileInfo(layoutPath); 576var fileInfo = new FileInfo(layoutPath);
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Program.cs (1)
108var file = new FileInfo(fullPath);
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Languages\Language.cs (1)
41var file = new FileInfo(path);
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
GenerateSwaggerCode.cs (1)
86var file = new FileInfo(fullPath);
Microsoft.Extensions.AI.Evaluation.Reporting (3)
Storage\DiskBasedResultStore.cs (3)
97var resultFile = new FileInfo(Path.Combine(resultDir.FullName, $"{result.IterationName}.json")); 143new FileInfo(Path.Combine(_resultsRootPath, executionName, scenarioName, $"{iterationName}.json")); 332var resultFile = new FileInfo(Path.Combine(scenarioDir.FullName, $"{iterationName}.json"));
Microsoft.Extensions.DataIngestion.MarkItDown (1)
MarkItDownReader.cs (1)
121return await ReadAsync(new FileInfo(inputFilePath), identifier, mediaType, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.DataIngestion.Tests (9)
IngestionPipelineTests.cs (2)
34_withTable = new(Path.Combine("TestFiles", "withTable.md")); 55_withImage = new(Path.Combine("TestFiles", "withImage.md"));
Readers\DocumentReaderConformanceTests.cs (4)
27await Assert.ThrowsAsync<ArgumentNullException>("identifier", async () => await reader.ReadAsync(new FileInfo("fileName.txt"), identifier: null!)); 28await Assert.ThrowsAsync<ArgumentException>("identifier", async () => await reader.ReadAsync(new FileInfo("fileName.txt"), identifier: string.Empty)); 62await Assert.ThrowsAsync<TaskCanceledException>(async () => await reader.ReadAsync(new FileInfo(filePath), cts.Token)); 192FileInfo file = new(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + extension));
Readers\MarkItDownMcpReaderTests.cs (3)
24await Assert.ThrowsAsync<ArgumentNullException>("identifier", async () => await reader.ReadAsync(new FileInfo("fileName.txt"), identifier: null!)); 25await Assert.ThrowsAsync<ArgumentException>("identifier", async () => await reader.ReadAsync(new FileInfo("fileName.txt"), identifier: string.Empty)); 45var nonExistentFile = new FileInfo(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()));
Microsoft.Extensions.Diagnostics.ResourceMonitoring (30)
Linux\Disk\DiskStatsReader.cs (1)
18private static readonly FileInfo _diskStatsFile = new("/proc/diskstats");
Linux\LinuxUtilizationParserCgroupV1.cs (10)
25private static readonly FileInfo _cpuCfsQuotaUs = new("/sys/fs/cgroup/cpu/cpu.cfs_quota_us"); 30private static readonly FileInfo _cpuCfsPeriodUs = new("/sys/fs/cgroup/cpu/cpu.cfs_period_us"); 39private static readonly FileInfo _procStat = new("/proc/stat"); 44private static readonly FileInfo _memInfo = new("/proc/meminfo"); 49private static readonly FileInfo _cpuSetCpus = new("/sys/fs/cgroup/cpuset/cpuset.cpus"); 54private static readonly FileInfo _memoryLimitInBytes = new("/sys/fs/cgroup/memory/memory.limit_in_bytes"); 62private static readonly FileInfo _memoryUsageInBytes = new("/sys/fs/cgroup/memory/memory.usage_in_bytes"); 71private static readonly FileInfo _memoryStat = new("/sys/fs/cgroup/memory/memory.stat"); 80private static readonly FileInfo _cpuacctUsage = new("/sys/fs/cgroup/cpuacct/cpuacct.usage"); 85private static readonly FileInfo _cpuPodWeight = new("/sys/fs/cgroup/cpu/cpu.shares");
Linux\LinuxUtilizationParserCgroupV2.cs (17)
35private static readonly FileInfo _cpuCfsQuaotaPeriodUs = new("/sys/fs/cgroup/cpu.max"); 44private static readonly FileInfo _procStat = new("/proc/stat"); 49private static readonly FileInfo _memInfo = new("/proc/meminfo"); 55private static readonly FileInfo _cpuSetCpus = new("/sys/fs/cgroup/cpuset.cpus.effective"); 60private static readonly FileInfo _memoryLimitInBytes = new("/sys/fs/cgroup/memory.max"); 68private static readonly FileInfo _memoryUsageInBytes = new("/sys/fs/cgroup/memory.current"); 77private static readonly FileInfo _memoryStat = new("/sys/fs/cgroup/memory.stat"); 86private static readonly FileInfo _cpuacctUsage = new("/sys/fs/cgroup/cpu.stat"); 91private static readonly FileInfo _cpuPodWeight = new("/sys/fs/cgroup/cpu.weight"); 93private static readonly FileInfo _cpuCgroupInfoFile = new("/proc/self/cgroup"); 154FileInfo cpuUsageFile = new(GetCgroupPath(CpuStat)); 227FileInfo cpuLimitsFile = new(GetCgroupPath(CpuLimit)); 238FileInfo cpuLimitsFile = new(GetCgroupPath(CpuLimit)); 262FileInfo cpuRequestsFile = new(GetCgroupPath(CpuRequest)); 319FileInfo memoryUsageInBytesFile = new(Path.Combine(path, "memory.current")); 520FileInfo memoryMinFile = new(GetCgroupPath(MemoryMin)); 541FileInfo memoryLowFile = new(GetCgroupPath(MemoryLow));
Linux\Network\LinuxNetworkUtilizationParser.cs (2)
23private static readonly FileInfo _tcp = new("/proc/net/tcp"); 28private static readonly FileInfo _tcp6 = new("/proc/net/tcp6");
Microsoft.Extensions.FileProviders.Physical (4)
Internal\FileSystemInfoHelper.cs (1)
35var fileInfo = new FileInfo(filePath);
PhysicalFileProvider.cs (1)
279var fileInfo = new FileInfo(fullPath);
PhysicalFilesWatcher.cs (2)
202var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(_root, filePath))); 383FileSystemInfo fileSystemInfo = new FileInfo(fullPath) is { Exists: true } fileInfo
Microsoft.Extensions.FileSystemGlobbing (1)
Abstractions\DirectoryInfoWrapper.cs (1)
89=> new FileInfoWrapper(new FileInfo(Path.Combine(_directoryInfo.FullName, name)));
Microsoft.Extensions.Logging.AzureAppServices (1)
FileLoggerProvider.cs (1)
46var fileInfo = new FileInfo(fullName);
Microsoft.Maui.Resizetizer (7)
CreatePartialInfoPlistTask.cs (1)
47 var fontFile = new FileInfo(font.ItemSpec);
ResizeImageInfo.cs (2)
81 var fileInfo = new FileInfo(image.GetMetadata("FullPath")); 120 var fgFileInfo = new FileInfo(fgFile);
Resizer.cs (4)
56 var fileInfo = new FileInfo(destination); 80 var fileIn = new FileInfo(inputFile); 81 var fileOut = new FileInfo(outputFile); 82 var fileInputs = inputsFile is null ? null : new FileInfo(inputsFile);
Microsoft.ML.AutoML (3)
Experiment\Runners\RunnerUtil.cs (1)
58new FileInfo(Path.Combine(modelDirectory.FullName, $"Model{iterationNum}_{foldNum}.zip"));
Experiment\Runners\TrainValidateRunner.cs (1)
66new FileInfo(Path.Combine(modelDirectory.FullName, $"Model{iterationNum}.zip"));
Utils\UserInputValidationUtil.cs (1)
171var fileInfo = new FileInfo(path);
Microsoft.ML.AutoML.Tests (2)
DatasetUtil.cs (2)
212var fileInfo = new FileInfo(relativeFilePath); 236Path.Combine(new FileInfo(typeof(
Microsoft.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
47var currentAssemblyLocation = new FileInfo(typeof(IntegrationTestBaseClass).Assembly.Location);
Microsoft.ML.PerformanceTests (2)
ImageClassificationBench.cs (2)
165var currentSize = new FileInfo(relativeFilePath).Length; 208FileInfo dataRoot = new FileInfo(typeof(
Microsoft.ML.Samples (4)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
309FileInfo _dataRoot = new FileInfo(typeof(
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
350FileInfo _dataRoot = new FileInfo(typeof(
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
306FileInfo _dataRoot = new FileInfo(typeof(
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
327FileInfo _dataRoot = new FileInfo(typeof(
Microsoft.ML.Samples.GPU (4)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
309FileInfo _dataRoot = new FileInfo(typeof(
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
350FileInfo _dataRoot = new FileInfo(typeof(
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
306FileInfo _dataRoot = new FileInfo(typeof(
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
327FileInfo _dataRoot = new FileInfo(typeof(
Microsoft.ML.Sweeper (1)
ConfigRunner.cs (1)
211if (File.Exists(errorFile) && new FileInfo(errorFile).Length == 0)
Microsoft.ML.TestFramework (4)
BaseTestClass.cs (1)
55var currentAssemblyLocation = new FileInfo(typeof(BaseTestClass).Assembly.Location);
CopyAction.cs (3)
26FileInfo file = new FileInfo(oldPath); 27FileInfo destFile = new FileInfo(newPath); 45var testDirectory = new FileInfo(typeof(CopyAction).Assembly.Location).Directory;
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
25var fileInfo = new FileInfo(fileName);
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
25var fileInfo = new FileInfo(fileName);
Microsoft.VisualBasic.Core (6)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
392m_sFullPath = (New FileInfo(sPath)).FullName
Microsoft\VisualBasic\FileSystem.vb (5)
308Return (New FileInfo(PathName)).LastWriteTime 319Return (New FileInfo(PathName)).Length 353Dim f As New FileInfo(PathName) 1323Result = (New FileInfo(sPath)).FullName 1392FileName = (New FileInfo(FileName)).FullName
Microsoft.VisualBasic.Tests (3)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (3)
370var FileInfoFromSystemIO = new FileInfo(TestFile); 484Assert.Equal(0, (new FileInfo(TempFile)).Length); 618CreateTestFile(DestData, PathFromBase: null, TestFileName: (new FileInfo(SourceFileNameWithPath)).Name);
Microsoft.VisualStudio.LanguageServices.Implementation (1)
SolutionExplorer\AnalyzersCommandHandler.cs (1)
478var fileInfo = new FileInfo(pathToRuleSet);
PresentationFramework (1)
MS\Internal\IO\Packaging\XpsFilter.cs (1)
638FileInfo fi = new FileInfo(filePath);
PresentationUI (2)
MS\Internal\Documents\Application\DocumentProperties.cs (1)
345FileInfo fileInfo = new FileInfo(filePath);
MS\Internal\Documents\Application\DocumentStream.cs (1)
531FileInfo originalInfo = new FileInfo(original);
Replay (1)
src\Compilers\Shared\NativeMethods.cs (1)
142return new FileInfo(TrimWin32ExtendedPrefix(sb.ToString()));
ResultsOfTGenerator (2)
Program.cs (2)
206var file = new FileInfo(classFilePath); 292var file = new FileInfo(testFilePath);
Roslyn.Diagnostics.Analyzers (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
RunTests (2)
Program.cs (2)
237ConsoleUtil.WriteLine($"succeeded ({new FileInfo(dumpFilePath).Length} bytes)"); 435long fileSizeInMegabytes = (new FileInfo(dumpFile).Length / 1024) / 1024;
ServerComparison.FunctionalTests (1)
Helpers.cs (1)
19var solutionFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "FunctionalTests.slnf"));
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesigntimeLicenseContext.cs (1)
78string fileName = new FileInfo(location).Name;
System.Configuration.ConfigurationManager (2)
System\Configuration\Internal\InternalConfigHost.cs (2)
214FileInfo info = new FileInfo(streamName); 255FileInfo fi = new FileInfo(streamName);
System.Formats.Tar (2)
System\Formats\Tar\TarEntry.cs (1)
482FileInfo link = new(filePath);
System\Formats\Tar\TarWriter.Unix.cs (1)
63FileSystemInfo info = entryType is TarEntryType.Directory ? new DirectoryInfo(fullPath) : new FileInfo(fullPath);
System.IO.Packaging (1)
System\IO\Packaging\Package.cs (1)
879FileInfo packageFileInfo = new FileInfo(path);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
215return new FileInfo(destinationFileName);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
723new FileInfo(linkTarget);
System.Runtime.Caching (1)
System\Runtime\Caching\FileChangeNotificationSystem.cs (1)
97FileInfo fileInfo = new FileInfo(filePath);
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListView.cs (4)
2438fi = new FileInfo(bkImgFileName); 2944FileInfo fi = new(fileName); 3102fi = new FileInfo(_backgroundImageFileName); 3127fi = new FileInfo(bkImgFileName);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
171FileInfo file = new(path);
Templates.Tests (1)
NewlineEndingTest.cs (1)
63var fileInfo = new FileInfo(filePath);
Test.Utilities (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
Text.Analyzers (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
417var info = new FileInfo(fullPath); 440var info = new FileInfo(fullPath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
793var fileInfo = new FileInfo(fullPath);
vbc (1)
src\Compilers\Shared\NativeMethods.cs (1)
142return new FileInfo(TrimWin32ExtendedPrefix(sb.ToString()));
VBCSCompiler (1)
src\Compilers\Shared\NativeMethods.cs (1)
142return new FileInfo(TrimWin32ExtendedPrefix(sb.ToString()));