716 references to FullName
aspire (44)
Commands\RunCommand.cs (2)
175grid.AddRow(new Markup("[bold green]Logs[/]:"), new Text(logFile.FullName)); 270using var streamWriter = new StreamWriter(logFile.FullName, append: true)
Configuration\ConfigurationService.cs (4)
86return globalSettingsFile.FullName; 101var settingsFilePath = ConfigurationHelper.BuildPathToSettingsJsonFile(searchDirectory.FullName); 112return ConfigurationHelper.BuildPathToSettingsJsonFile(currentDirectory.FullName); 121await LoadConfigurationFromFileAsync(globalSettingsFile.FullName, allConfig, cancellationToken);
DotNetCliRunner.cs (8)
143projectFile.FullName 204string[] cliArgs = [watchOrRunCommand, noBuildSwitch, noProfileSwitch, "--project", projectFile.FullName, "--", ..args]; 400WorkingDirectory = workingDirectory.FullName, 591string[] cliArgs = ["build", projectFilePath.FullName]; 614projectFilePath.FullName, 629logger.LogInformation("Adding package {PackageName} with version {PackageVersion} to project {ProjectFilePath}", packageName, packageVersion, projectFilePath.FullName); 641logger.LogError("Failed to add package {PackageName} with version {PackageVersion} to project {ProjectFilePath}. See debug logs for more details.", packageName, packageVersion, projectFilePath.FullName); 645logger.LogInformation("Package {PackageName} with version {PackageVersion} added to project {ProjectFilePath}", packageName, packageVersion, projectFilePath.FullName);
NuGet\NuGetPackageCache.cs (2)
26var key = $"TemplatePackages-{workingDirectory.FullName}-{prerelease}-{source}"; 43var key = $"CliPackages-{workingDirectory.FullName}-{prerelease}-{source}";
Projects\ProjectLocator.cs (24)
31logger.LogDebug("Searching for project files in {SearchDirectory}", searchDirectory.FullName); 40logger.LogDebug("Found {ProjectFileCount} project files in {SearchDirectory}", projectFiles.Length, searchDirectory.FullName); 50logger.LogDebug("Checking project file {ProjectFile}", projectFile.FullName); 55logger.LogDebug("Found AppHost project file {ProjectFile} in {SearchDirectory}", projectFile.FullName, searchDirectory.FullName); 56var relativePath = Path.GetRelativePath(currentDirectory.FullName, projectFile.FullName); 65logger.LogTrace("Project file {ProjectFile} in {SearchDirectory} is not an Aspire host", projectFile.FullName, searchDirectory.FullName); 71appHostProjects.Sort((x, y) => x.FullName.CompareTo(y.FullName)); 83var settingsFile = new FileInfo(ConfigurationHelper.BuildPathToSettingsJsonFile(searchDirectory.FullName)); 93var qualifiedAppHostPath = Path.IsPathRooted(appHostPath) ? appHostPath : Path.Combine(settingsFile.Directory!.FullName, appHostPath); 103interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostWasSpecifiedButDoesntExist, settingsFile.FullName, qualifiedAppHostPath)); 129logger.LogError("Project file {ProjectFile} does not exist.", projectFile.FullName); 133logger.LogDebug("Using project file {ProjectFile}", projectFile.FullName); 165projectFile => $"{projectFile.Name} ({Path.GetRelativePath(currentDirectory.FullName, projectFile.FullName)})", 176var settingsFilePath = ConfigurationHelper.BuildPathToSettingsJsonFile(currentDirectory.FullName); 179logger.LogDebug("Creating settings file at {SettingsFilePath}", settingsFile.FullName); 181var relativePathToProjectFile = Path.GetRelativePath(settingsFile.Directory!.FullName, projectFile.FullName).Replace(Path.DirectorySeparatorChar, '/'); 186var relativeSettingsFilePath = Path.GetRelativePath(currentDirectory.FullName, settingsFile.FullName).Replace(Path.DirectorySeparatorChar, '/');
Utils\ConfigurationHelper.cs (4)
19var settingsFilePath = BuildPathToSettingsJsonFile(currentDirectory.FullName); 31if (File.Exists(globalSettingsFile.FullName)) 33configuration.AddJsonFile(globalSettingsFile.FullName, optional: true); 39configuration.AddJsonFile(localSettingsFile.FullName, optional: true);
Aspire.Cli.Tests (67)
Commands\ConfigCommandTests.cs (5)
42var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "settings.json"); 65var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "settings.json"); 90var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "settings.json"); 124var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "settings.json"); 244var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "settings.json");
DotNet\DotNetCliRunnerTests.cs (12)
20var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 21await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 63var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 64await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 95var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 96await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 137var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 138await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 178var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 179await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 222var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 223await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file.");
Projects\ProjectLocatorTests.cs (45)
28var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 50var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 51await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 54var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 55await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 58var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 63appHostPath = Path.GetRelativePath(aspireSettingsFile.Directory!.FullName, targetAppHostProjectFile.FullName) 74Assert.Equal(targetAppHostProjectFile.FullName, foundAppHost?.FullName); 88var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 89await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 92var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 93await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 96var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 101appHostPath = Path.GetRelativePath(aspireSettingsFile.Directory!.FullName, targetAppHostProjectFile.FullName) 112Assert.Equal(targetAppHostProjectFile.FullName, foundAppHost?.FullName); 123var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 124await File.WriteAllTextAsync(realAppHostProjectFile.FullName, "Not a real apphost project"); 128var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 139if (projectFile.FullName == realAppHostProjectFile.FullName) 156Assert.Equal(realAppHostProjectFile.FullName, foundAppHost?.FullName); 166var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost1.csproj")); 167await File.WriteAllTextAsync(projectFile1.FullName, "Not a real project file."); 169var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost2.csproj")); 170await File.WriteAllTextAsync(projectFile2.FullName, "Not a real project file."); 179Assert.Equal(projectFile1.FullName, selectedProjectFile!.FullName); 188var appHostProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 189await File.WriteAllTextAsync(appHostProject.FullName, "Not a real apphost project."); 191var webProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "WebProject.csproj")); 192await File.WriteAllTextAsync(webProject.FullName, "Not a real web project."); 196if (projectFile.FullName == appHostProject.FullName) 211Assert.Equal(appHostProject.FullName, foundAppHost?.FullName); 238var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 239await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 256var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 257await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 266Assert.Equal(projectFile.FullName, returnedProjectFile!.FullName); 277var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 278await File.WriteAllTextAsync(appHostProjectFile.FullName, "Not a real project file."); 289var globalSettingsFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "settings.global.json"); 299var settingsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire", "settings.json")); 302var settingsJson = await File.ReadAllTextAsync(settingsFile.FullName);
Utils\CliTestHelper.cs (2)
55var globalSettingsFilePath = Path.Combine(options.WorkingDirectory.FullName, ".aspire", "settings.global.json"); 164var globalSettingsFilePath = Path.Combine(workingDirectory.FullName, ".aspire", "settings.global.json");
Utils\TemporaryRepo.cs (3)
20outputHelper.WriteLine($"Initializing git repository at: {repoDirectory.FullName}"); 28WorkingDirectory = repoDirectory.FullName, 63outputHelper.WriteLine($"Temporary workspace created at: {repoDirectory.FullName}");
Aspire.Dashboard.Tests (6)
Integration\StartupTests.cs (3)
163.AddInMemoryCollection(new Dictionary<string, string?> { [dashboardFileConfigDirectoryNameKey] = fileConfigDirectory.FullName }) 198.AddInMemoryCollection(new Dictionary<string, string?> { [DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory.FullName }) 801var browserTokenConfigFile = Path.Combine(fileConfigDirectory.FullName, DashboardConfigNames.DashboardFrontendBrowserTokenName.EnvVarName);
tests\Shared\Playwright\PlaywrightProvider.cs (1)
55var probePath = Path.Combine(repoRoot.FullName, "artifacts", "bin", "playwright-deps");
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
Aspire.EndToEnd.Tests (6)
IntegrationServicesFixture.cs (1)
56_testProjectPath = Path.Combine(BuildEnvironment.RepoRoot.FullName, "tests", "testproject");
tests\Shared\Playwright\PlaywrightProvider.cs (1)
55var probePath = Path.Combine(repoRoot.FullName, "artifacts", "bin", "playwright-deps");
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
84var sdkFromArtifactsPath = Path.Combine(RepoRoot!.FullName, "artifacts", "bin", sdkDirName); 116BuiltNuGetsPath = Path.Combine(RepoRoot.FullName, "artifacts", "packages", "Debug", "Shipping");
Aspire.Hosting (5)
Dcp\DcpExecutor.cs (1)
1366FileInfo filePath => filePath.FullName,
Dcp\Locations.cs (1)
18_basePath ??= Directory.CreateTempSubdirectory("aspire.").FullName;
Publishing\ManifestPublisher.cs (2)
46if (!Directory.Exists(parentDirectory!.FullName)) 49Directory.CreateDirectory(parentDirectory.FullName);
Publishing\ManifestPublishingContext.cs (1)
344FileInfo fileValue => GetManifestRelativePath(fileValue.FullName),
Aspire.Hosting.Azure (4)
AzureBicepResource.cs (1)
100? Path.Combine(directory ?? Directory.CreateTempSubdirectory("aspire").FullName, $"{Name.ToLowerInvariant()}.module.bicep")
AzureProvisioningResource.cs (1)
83var generationPath = Directory.CreateTempSubdirectory("aspire").FullName;
AzurePublishingContext.cs (2)
147var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 312var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep");
Aspire.Hosting.Azure.Tests (23)
AzureAppServiceTests.cs (2)
184File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 186builder.AddDockerfile("api", directory.FullName)
AzureContainerAppsTests.cs (2)
62File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 64builder.AddDockerfile("api", directory.FullName);
AzureEnvironmentResourceTests.cs (14)
21output.WriteLine($"Temp directory: {tempDir.FullName}"); 22using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.FullName); 34var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 38var envBicepPath = Path.Combine(tempDir.FullName, "env", "env.bicep"); 53output.WriteLine($"Temp directory: {tempDir.FullName}"); 54using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.FullName); 71var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 85output.WriteLine($"Temp directory: {tempDir.FullName}"); 88outputPath: tempDir.FullName); 123var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 134output.WriteLine($"Temp directory: {tempDir.FullName}"); 137outputPath: tempDir.FullName); 172var mainBicep = File.ReadAllText(Path.Combine(tempDir.FullName, "main.bicep")); 173var storageBicep = File.ReadAllText(Path.Combine(tempDir.FullName, "storage", "storage.bicep"));
AzureManifestUtils.cs (1)
29string manifestDir = Directory.CreateTempSubdirectory(resource.Name).FullName;
AzureResourceOptionsTests.cs (4)
23var outputPath = Path.Combine(tempDir.FullName, "aspire-manifest.json"); 42var sbBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sb.module.bicep")); 44var sqlBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sql-server.module.bicep")); 59output.WriteLine($"Failed to delete {tempDir.FullName} : {ex.Message}. Ignoring.");
Aspire.Hosting.Docker.Tests (6)
DockerComposeTests.cs (6)
41output.WriteLine($"Temp directory: {tempDir.FullName}"); 42using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.FullName); 54var composeFile = Path.Combine(tempDir.FullName, "docker-compose.yaml"); 64output.WriteLine($"Temp directory: {tempDir.FullName}"); 65using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.FullName); 79var composeFile = Path.Combine(tempDir.FullName, "docker-compose.yaml");
Aspire.Hosting.Kubernetes.Tests (5)
KubernetesEnvironmentResourceTests.cs (5)
15output.WriteLine($"Temp directory: {tempDir.FullName}"); 16using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.FullName); 26var chartYaml = Path.Combine(tempDir.FullName, "Chart.yaml"); 27var valuesYaml = Path.Combine(tempDir.FullName, "values.yaml"); 28var deploymentYaml = Path.Combine(tempDir.FullName, "templates", "service", "deployment.yaml");
Aspire.Hosting.MySql.Tests (1)
MySqlFunctionalTests.cs (1)
148bindMountPath = Directory.CreateTempSubdirectory().FullName;
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
176bindMountPath = Directory.CreateTempSubdirectory().FullName;
Aspire.Hosting.NodeJs.Tests (1)
NodeAppFixture.cs (1)
75var tempDir = Directory.CreateTempSubdirectory("aspire-nodejs-tests").FullName;
Aspire.Hosting.Oracle.Tests (3)
OracleFunctionalTests.cs (3)
113bindMountPath = Directory.CreateTempSubdirectory().FullName; 262var bindMountPath = Directory.CreateTempSubdirectory().FullName; 360var initFilesPath = Directory.CreateTempSubdirectory().FullName;
Aspire.Hosting.RabbitMQ.Tests (1)
RabbitMQFunctionalTests.cs (1)
121bindMountPath = Directory.CreateTempSubdirectory().FullName;
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
462bindMountPath = Directory.CreateTempSubdirectory().FullName;
Aspire.Hosting.Testing (2)
DistributedApplicationFactory.cs (2)
346var launchSettingsFilePath = projectFileInfo.FullName switch 349_ => Path.Combine(projectFileInfo.FullName, "Properties", "launchSettings.json")
Aspire.Hosting.Testing.Tests (2)
tests\Aspire.Hosting.Tests\Utils\MSBuildUtils.cs (1)
15directory = Directory.GetParent(directory)!.FullName;
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
32builder.Configuration["Aspire:Store:Path"] = path ?? Directory.CreateTempSubdirectory().FullName;
Aspire.Hosting.Tests (5)
Schema\SchemaTests.cs (2)
112var tempContextPath = Directory.CreateTempSubdirectory().FullName; 221string manifestDir = Directory.CreateTempSubdirectory(testCaseName).FullName;
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
32builder.Configuration["Aspire:Store:Path"] = path ?? Directory.CreateTempSubdirectory().FullName;
tests\Shared\TempDirectory.cs (1)
6public string Path { get; } = Directory.CreateTempSubdirectory(".aspire-tests").FullName;
Utils\MSBuildUtils.cs (1)
15directory = Directory.GetParent(directory)!.FullName;
Aspire.Templates.Tests (5)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
55var probePath = Path.Combine(repoRoot.FullName, "artifacts", "bin", "playwright-deps");
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
84var sdkFromArtifactsPath = Path.Combine(RepoRoot!.FullName, "artifacts", "bin", sdkDirName); 116BuiltNuGetsPath = Path.Combine(RepoRoot.FullName, "artifacts", "packages", "Debug", "Shipping");
BuildValidator (3)
LocalReferenceResolver.cs (1)
81locations.Add(fileInfo.FullName);
Program.cs (2)
325logger.LogError($"Could not find pdb for {originalBinary.FullName}"); 329using var _ = logger.BeginScope($"Verifying {originalBinary.FullName} with pdb {pdbPath ?? "[embedded]"}");
CodeStyleConfigFileGenerator (2)
Program.cs (2)
91var configFilePath = Path.Combine(directory.FullName, configFileName); 205var fileWithPath = Path.Combine(directory.FullName, targetsFileName);
dotnet-dev-certs (5)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
488Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
464Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 903if (!TryGetOpenSslHash(cert.FullName, out var hash)) 923Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
163Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
dotnet-openapi (2)
Commands\BaseCommand.cs (2)
128projectFile.FullName, 225WorkingDirectory = projectFile.Directory.FullName,
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (3)
115throw new ToolInputException(SR.Format(SR.ErrInputFileNotAssemblyOrMetadata, fileInfo.FullName, path)); 135assembly = LoadAssembly(fileInfo.FullName); 171throw new ToolInputException(SR.Format(SR.ErrDirectoryNotFound, dirInfo.FullName));
dotnet-svcutil-lib (33)
Bootstrapper\SvcutilBootstrapper.cs (1)
99var projectFullPath = Path.Combine(this.Options.BootstrapPath.FullName, nameof(SvcutilBootstrapper), SvcutilBootstrapper.ProjectName);
CodeSerializer.cs (2)
32_outputFilePath = OutputPathHelper.BuildFilePath(s_defaultFileName, options.OutputDir.FullName, outputFilename, extension, CommandProcessorOptions.Switches.OutputFile.Name); 133string fileName = options.OutputFile?.FullName;
CommandProcessorOptions.cs (10)
216await ProcessOutputFileOptionAsync(this.OutputDir.FullName, cancellationToken); 390Path.GetDirectoryName(this.OutputFile.FullName) : Path.GetDirectoryName(Path.Combine(Directory.GetCurrentDirectory(), this.OutputFile.OriginalPath())); 651if (this.Project != null && PathHelper.GetRelativePath(this.OutputDir.FullName, new DirectoryInfo(this.Project.DirectoryPath), out var relPath)) 698var projectFullPath = Path.Combine(this.BootstrapPath.FullName, "TFMResolver", "TFMResolver.csproj"); 736var inputFiles = Metadata.MetadataFileNameManager.ResolveFiles(metadataUri.LocalPath).Select(f => f.FullName); 836string projFolder = Path.Combine(this.BootstrapPath.FullName, nameof(SvcutilBootstrapper)); 841assembly = Assembly.LoadFrom(assemblyFile.FullName); 1008if (!Directory.Exists(this.BootstrapPath.FullName)) 1010Directory.CreateDirectory(this.BootstrapPath.FullName); 1014await RuntimeEnvironmentHelper.TryCopyingConfigFiles(workingDirectory, this.BootstrapPath.FullName, logger, cancellationToken).ConfigureAwait(false);
Metadata\MetadataDocumentLoader.cs (4)
107this.metadataSourceFiles.AddRange(fileInfoList.Select(fi => new Uri(fi.FullName, UriKind.Absolute))); 148this.metadataSourceFiles.AddRange(fileInfoList.Select(fi => new Uri(fi.FullName, UriKind.Absolute))); 219if (!IsUriProcessed(fileInfo.FullName)) 223await LoadFromStreamAsync(fileStream, fileInfo.FullName, fileInfo.DirectoryName, cancellationToken).ConfigureAwait(false);
Metadata\MetadataDocumentSaver.cs (1)
143var missingRefs = files.Where(file => !this.MetadataFiles.Any(metaFile => MetadataFileNameManager.UriEqual(file.FullName, metaFile.SourceUri)));
Metadata\MetadataFileNameManager.cs (1)
248throw new DirectoryNotFoundException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrDirectoryNotFoundFormat, dirInfo.FullName));
Shared\MSBuildProj.cs (4)
316fullPath = new FileInfo(Path.Combine(msbuildProj.DirectoryPath, binReference)).FullName; 797var assetsFile = new FileInfo(Path.Combine(this.DirectoryPath, "obj", "project.assets.json")).FullName; 1006.Where(f => PathHelper.GetFolderName(Path.GetDirectoryName(f)) == this.TargetFramework || Directory.GetParent(Directory.GetParent(f).FullName).Name == this.TargetFramework) 1010depsFile = depsFiles.FirstOrDefault()?.FullName;
Shared\Options\ApplicationOptions.cs (1)
140jsonText = File.ReadAllText(fileInfo.FullName);
Shared\Options\UpdateOptions.cs (2)
109this.OutputFile = new FileInfo(Path.Combine(optionsFileDirectory.FullName, this.OutputFile.OriginalPath())); 117if (!input.IsAbsoluteUri && PathHelper.IsFile(input, optionsFileDirectory.FullName, out var fileUri))
Shared\Utilities\PathHelper.cs (4)
85filePath = Path.Combine(directory.FullName, relPath); 114var parentSegments = Path.GetFullPath(parentPath.FullName).Split(new char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries); 178var directory = new DirectoryInfo(Path.Combine(parentDirInfo.FullName, directoryName)); 198directory = new DirectoryInfo(Path.Combine(parentDirInfo.FullName, directoryName + nextIndex));
Tool.cs (3)
145if (!File.Exists(options.OutputFile.FullName)) 268PathHelper.IsUnderDirectory(options.OutputFile.FullName, new DirectoryInfo(options.Project.DirectoryPath), out var filePath, out var relPath); 314var paramsFile = Path.Combine(options.OutputDir.FullName, CommandProcessorOptions.SvcutilParamsFileName);
dotnet-svcutil-lib.Tests (3)
FileUtil.cs (1)
35CopyDirectory(subdir.FullName, temppath);
FixupUtil.cs (1)
56var resultPathReplacement = Directory.GetParent(resultsPath).FullName;
TestInit.cs (1)
539vstestDir = new DirectoryInfo(Path.Combine(g_RepositoryRoot, "src", "dotnet-svcutil", "lib", "tests")).FullName;
FilesWebSite (1)
Controllers\DownloadFilesController.cs (1)
61return PhysicalFile(fileInfo.FullName, "text/plain");
GenerateDocumentationAndConfigFiles (10)
Program.cs (10)
433var fileWithPath = Path.Combine(directory.FullName, args.PropsFileName); 442fileWithPath = Path.Combine(directory.FullName, args.PropsFileToDisableNetAnalyzersInNuGetPackageName); 542var fileWithPath = Path.Combine(directory.FullName, args.AnalyzerDocumentationFileName); 638var fileWithPath = Path.Combine(directory.FullName, args.AnalyzerSarifFileName); 732Validate(Path.Combine(directory.FullName, args.AnalyzerSarifFileName), stringWriter.ToString(), fileNamesWithValidationFailures); 774var fileWithPath = Path.Combine(directory.FullName, "RulesMissingDocumentation.md"); 1110var rulesetFilePath = Path.Combine(directory.FullName, rulesetFileName); 1175var editorconfigFilePath = Path.Combine(directory.FullName, ".editorconfig"); 1398var configFilePath = Path.Combine(directory.FullName, fileName.ToLowerInvariant()); 1610var fileWithPath = Path.Combine(directory.FullName, targetsFileName);
GenerateRulesMissingDocumentation (1)
Program.cs (1)
41var fileWithPath = Path.Combine(directory.FullName, rulesMissingDocumentationFileName);
IIS.FunctionalTests (14)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (4)
216file.CopyTo(Path.Combine(toInfo.FullName, file.Name)); 251imageAttribute.Value = imageAttribute.Value.Replace(sourceDirectory.FullName, destinationDirectory.FullName); 266var destFileName = Path.Combine(target.FullName, fileInfo.Name);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (7)
83if (directoryInfo.FullName != target.FullName) 88logger?.LogDebug($"Processing {target.FullName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>"); 272.SetAttributeValue("physicalPath", rootApplicationDirectory.FullName); 276return rootApplicationDirectory.FullName;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
40return Task.FromResult(new PublishedApplication(target.FullName, logger));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
130_publishedApplication = new PublishedApplication(destination.FullName, Logger); 135.SetAttributeValue("physicalPath", destination.FullName);
IIS.LongTests (8)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (7)
83if (directoryInfo.FullName != target.FullName) 88logger?.LogDebug($"Processing {target.FullName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>"); 272.SetAttributeValue("physicalPath", rootApplicationDirectory.FullName); 276return rootApplicationDirectory.FullName;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
40return Task.FromResult(new PublishedApplication(target.FullName, logger));
IIS.NewHandler.FunctionalTests (8)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (7)
83if (directoryInfo.FullName != target.FullName) 88logger?.LogDebug($"Processing {target.FullName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>"); 272.SetAttributeValue("physicalPath", rootApplicationDirectory.FullName); 276return rootApplicationDirectory.FullName;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
40return Task.FromResult(new PublishedApplication(target.FullName, logger));
IIS.NewShim.FunctionalTests (8)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (7)
83if (directoryInfo.FullName != target.FullName) 88logger?.LogDebug($"Processing {target.FullName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>"); 272.SetAttributeValue("physicalPath", rootApplicationDirectory.FullName); 276return rootApplicationDirectory.FullName;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
40return Task.FromResult(new PublishedApplication(target.FullName, logger));
IIS.ShadowCopy.Tests (12)
ShadowCopyTests.cs (4)
66if (!tempDirectoryPath.Equals(dirInfo.FullName)) 128dllPath = file.FullName; 356DirectoryPath = directoryInfo.FullName; 429DirectoryCopy(subdir.FullName, tempPath, copySubDirs);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (7)
83if (directoryInfo.FullName != target.FullName) 88logger?.LogDebug($"Processing {target.FullName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>"); 272.SetAttributeValue("physicalPath", rootApplicationDirectory.FullName); 276return rootApplicationDirectory.FullName;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
40return Task.FromResult(new PublishedApplication(target.FullName, logger));
IISExpress.FunctionalTests (14)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (4)
216file.CopyTo(Path.Combine(toInfo.FullName, file.Name)); 251imageAttribute.Value = imageAttribute.Value.Replace(sourceDirectory.FullName, destinationDirectory.FullName); 266var destFileName = Path.Combine(target.FullName, fileInfo.Name);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (7)
83if (directoryInfo.FullName != target.FullName) 88logger?.LogDebug($"Processing {target.FullName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>"); 272.SetAttributeValue("physicalPath", rootApplicationDirectory.FullName); 276return rootApplicationDirectory.FullName;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
40return Task.FromResult(new PublishedApplication(target.FullName, logger));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
130_publishedApplication = new PublishedApplication(destination.FullName, Logger); 135.SetAttributeValue("physicalPath", destination.FullName);
illink (4)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (11)
UserJwtsTestFixture.cs (7)
65Directory.CreateDirectory(Path.Combine(projectPath.FullName, "Properties")); 74Path.Combine(projectPath.FullName, "TestProject.csproj"), 77File.WriteAllText(Path.Combine(projectPath.FullName, "Properties", "launchSettings.json"), 81Path.Combine(projectPath.FullName, "appsettings.Development.json"), 85Path.Combine(projectPath.FullName, "appsettings.Local.json"), 101_disposables.Push(() => TryDelete(projectPath.FullName)); 103return projectPath.FullName;
UserJwtsTests.cs (4)
709Directory.SetCurrentDirectory(path.FullName); 735Directory.SetCurrentDirectory(path.FullName); 760Directory.SetCurrentDirectory(path.FullName); 785Directory.SetCurrentDirectory(path.FullName);
Microsoft.AspNetCore.DataProtection (13)
Internal\ContainerUtils.cs (2)
65var fs_file = new DirectoryInfo(fields[1].TrimEnd(Path.DirectorySeparatorChar)).FullName; 70if (fs_file.Equals(dir.FullName.TrimEnd(Path.DirectorySeparatorChar), StringComparison.Ordinal))
Internal\KeyManagementOptionsPostSetup.cs (1)
75logger.UsingReadOnlyKeyConfiguration(keyDirectory.FullName);
KeyManagement\XmlKeyManager.cs (3)
654_logger.UsingAzureAsKeyRepository(azureWebSitesKeysFolder.FullName); 680_logger.UsingProfileAsKeyRepositoryWithDPAPI(localAppDataKeysFolder.FullName); 684_logger.UsingProfileAsKeyRepository(localAppDataKeysFolder.FullName);
Repositories\FileSystemXmlRepository.cs (7)
40_logger.UsingEphemeralFileSystemLocationInContainer(Directory.FullName); 87yield return ReadElementFromFile(fileSystemInfo.FullName); 140var tempFilename = Path.Combine(Directory.FullName, Guid.NewGuid().ToString() + ".tmp"); 141var finalFilename = Path.Combine(Directory.FullName, filename + ".xml"); 188var fullPath = fileSystemInfo.FullName; 202_logger.DeletingFile(fileSystemInfo.FullName); 210_logger.FailedToDeleteFile(fileSystemInfo.FullName, ex);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (6)
DataProtectionProviderTests.cs (6)
41string fileText = File.ReadAllText(allFiles[0].FullName); 76var fileText = File.ReadAllText(file.FullName); 110string fileText = File.ReadAllText(allFiles[0].FullName); 156string fileText = File.ReadAllText(allFiles[0].FullName); 236string fileText = File.ReadAllText(allFiles[0].FullName); 307string fileText = File.ReadAllText(allFiles[0].FullName);
Microsoft.AspNetCore.DataProtection.Tests (15)
Internal\KeyManagementOptionsPostSetupTest.cs (3)
16private static readonly string keyDir = new DirectoryInfo("/testpath").FullName; 165Assert.Equal(keyDir, repository.Directory.FullName); 184Assert.NotEqual(keyDir, (repository as FileSystemXmlRepository)?.Directory.FullName);
Repositories\FileSystemXmlRepositoryTests.cs (10)
21var expectedDir = new DirectoryInfo(Path.Combine(baseDir, "DataProtection-Keys")).FullName; 27Assert.Equal(expectedDir, defaultDirInfo.FullName); 82var parsedElement = XElement.Parse(File.ReadAllText(fileInfo.FullName)); 116var parsedElement = XElement.Parse(File.ReadAllText(fileInfo.FullName)); 205var filePath1 = Path.Combine(dirInfo.FullName, "friendly1.xml"); 206var filePath2 = Path.Combine(dirInfo.FullName, "friendly2.xml"); 207var filePath3 = Path.Combine(dirInfo.FullName, "friendly3.xml"); 222fileLock2 = new FileStream(Path.Combine(dirInfo.FullName, "friendly2.xml"), FileMode.Open, FileAccess.ReadWrite, FileShare.None); 255var filePath = Path.Combine(dirInfo.FullName, "friendly1.xml"); 290Assert.Contains(Resources.FormatFileSystem_EphemeralKeysLocationInContainer(dirInfo.FullName), loggerFactory.ToString());
ServiceCollectionTests.cs (2)
74var keyDir = new DirectoryInfo("/testpath").FullName; 97Assert.Equal(keyDir, repository.Directory.FullName);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (5)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
488Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
464Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 903if (!TryGetOpenSslHash(cert.FullName, out var hash)) 923Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
163Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
Microsoft.AspNetCore.FunctionalTests (2)
WebHostFunctionalTests.cs (2)
240var solutionFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "DefaultBuilder.slnf")); 243return Path.GetFullPath(Path.Combine(directoryInfo.FullName, "testassets"));
Microsoft.AspNetCore.Identity.Test (2)
IdentityUIScriptsTest.cs (2)
175var solutionPath = Directory.EnumerateFiles(directoryInfo.FullName, "*.sln").FirstOrDefault(); 178return directoryInfo.FullName;
Microsoft.AspNetCore.InternalTesting (3)
TestPathUtilities.cs (3)
19var projectFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, $"{solution}.slnf")); 25projectFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "AspNetCore.slnx")); 29directoryInfo = new DirectoryInfo(Path.Combine(directoryInfo.FullName, "src"));
Microsoft.AspNetCore.Mvc.Testing (2)
WebApplicationFactory.cs (2)
515depsFile.FullName, 516Path.GetFileName(depsFile.FullName)));
Microsoft.AspNetCore.Server.IntegrationTesting (6)
ApplicationPublisher.cs (2)
31+ $" --output \"{publishDirectory.FullName}\"" 99return Task.FromResult(new PublishedApplication(publishDirectory.FullName, logger));
CachingApplicationPublisher.cs (3)
56return target.FullName; 66logger.LogDebug($"Processing {target.FullName}"); 70var destFileName = Path.Combine(target.FullName, fileInfo.Name);
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
298DirectoryCopy(subdir.FullName, temppath, copySubDirs);
Microsoft.AspNetCore.Server.Kestrel.Core (5)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
488Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
464Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 903if (!TryGetOpenSslHash(cert.FullName, out var hash)) 923Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
163Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
Microsoft.AspNetCore.Server.Kestrel.Tests (4)
KestrelConfigurationLoaderTests.cs (4)
960var tempDir = Directory.CreateTempSubdirectory().FullName; 974var oldCertPath = Path.Combine(oldDir.FullName, "tls.key"); 975var newCertPath = Path.Combine(newDir.FullName, "tls.key"); 998new KeyValuePair<string, string>("Endpoints:End1:Certificate:Path", fileLink.FullName),
Microsoft.AspNetCore.TestHost (2)
WebHostBuilderExtensions.cs (2)
155var solutionPath = Directory.EnumerateFiles(directoryInfo.FullName, solutionName).FirstOrDefault(); 158builder.UseContentRoot(Path.GetFullPath(Path.Combine(directoryInfo.FullName, solutionRelativePath)));
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
642options.StartInfo.WorkingDirectory = tmpDir.FullName;
Microsoft.Build.BuildCheck.UnitTests (2)
EndToEndTests.cs (1)
981string checksPackagesPath = Path.Combine(Directory.GetParent(AssemblyLocation)?.Parent?.FullName ?? string.Empty, "CustomChecks");
TestAssemblyInfo.cs (1)
138currentFolder = Directory.GetParent(currentFolder)?.FullName;
Microsoft.Build.CommandLine.UnitTests (3)
TestAssemblyInfo.cs (1)
138currentFolder = Directory.GetParent(currentFolder)?.FullName;
XMake_Tests.cs (2)
1989string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName; 2012string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName;
Microsoft.Build.Engine.OM.UnitTests (8)
BuildEnvironmentHelper.cs (2)
584=> currentToolsDirectory.Parent?.FullName, 597MSBuildToolsDirectoryRoot = currentToolsDirectory.Parent?.FullName;
FileUtilities.cs (1)
1292return parent?.FullName ?? path;
TempFileUtilities.cs (1)
216CopyDirectory(subdirInfo.FullName, destDir);
TestAssemblyInfo.cs (1)
138currentFolder = Directory.GetParent(currentFolder)?.FullName;
TransientIO.cs (3)
60public string RootFolder => EnsureTempRoot().FullName; 114if (this.root != null && Directory.Exists(this.root.FullName)) 118FileUtilities.DeleteDirectoryNoThrow(this.root.FullName, true);
Microsoft.Build.Engine.UnitTests (8)
BackEnd\SdkResolverLoader_Tests.cs (6)
65var f1 = Path.Combine(d1.FullName, "Resolver1.dll"); 68var f2 = Path.Combine(d1.FullName, "Dependency.dll"); 69var f3 = Path.Combine(d1.FullName, "InvalidName.dll"); 70var f4 = Path.Combine(d1.FullName, "NoResolver.txt"); 97var wrongResolverDll = Path.Combine(testFolder.FullName, "MyTestResolver.dll"); 98var resolverManifest = Path.Combine(testFolder.FullName, "MyTestResolver.xml");
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
192string testSdkDirectory = Directory.CreateDirectory(Path.Combine(_testSdkRoot, sdkName, "Sdk")).FullName;
TestAssemblyInfo.cs (1)
138currentFolder = Directory.GetParent(currentFolder)?.FullName;
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
138currentFolder = Directory.GetParent(currentFolder)?.FullName;
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
324Utilities.DeleteNoThrow(desiredPdbInfo.FullName); 328File.Move(actualPdbInfo.FullName, desiredLocation);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
324Utilities.DeleteNoThrow(desiredPdbInfo.FullName); 328File.Move(actualPdbInfo.FullName, desiredLocation);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
DotNetSdkTests.cs (2)
579foundConfigs.Add(editorConfigs[0].FullName); 585foundConfigs.Add(globalConfigs[0].FullName);
Microsoft.Build.Tasks.Core (45)
BuildEnvironmentHelper.cs (2)
584=> currentToolsDirectory.Parent?.FullName, 597MSBuildToolsDirectoryRoot = currentToolsDirectory.Parent?.FullName;
DownloadFile.cs (7)
180var destinationFile = new FileInfo(Path.Combine(destinationDirectory.FullName, filename)); 185Log.LogMessageFromResources(MessageImportance.Normal, "DownloadFile.DidNotDownloadBecauseOfFileMatch", SourceUrl, destinationFile.FullName, nameof(SkipUnchangedFiles), "true"); 187DownloadedFile = new TaskItem(destinationFile.FullName); 193Log.LogErrorFromResources("DownloadFile.Downloading", SourceUrl, destinationFile.FullName, response.Content.Headers.ContentLength); 201using (var target = new FileStream(destinationFile.FullName, FileMode.Create, FileAccess.Write, FileShare.None)) 203Log.LogMessageFromResources(MessageImportance.High, "DownloadFile.Downloading", SourceUrl, destinationFile.FullName, response.Content.Headers.ContentLength); 215DownloadedFile = new TaskItem(destinationFile.FullName);
FileMatcher.cs (1)
840if (linkTarget is not null && recursionState.BaseDirectory.Contains(linkTarget.FullName))
FileUtilities.cs (1)
1292return parent?.FullName ?? path;
TempFileUtilities.cs (1)
216CopyDirectory(subdirInfo.FullName, destDir);
Unzip.cs (15)
163string fullDestinationDirectoryPath = Path.GetFullPath(FileUtilities.EnsureTrailingSlash(destinationDirectory.FullName)); 173string fullDestinationPath = Path.GetFullPath(Path.Combine(destinationDirectory.FullName, zipArchiveEntry.FullName)); 180if (Path.GetFileName(destinationPath.FullName).Length == 0) 183Directory.CreateDirectory(destinationPath.FullName); 187if (!destinationPath.FullName.StartsWith(destinationDirectory.FullName, StringComparison.OrdinalIgnoreCase)) 191Log.LogErrorFromResources("Unzip.ErrorExtractingResultsInFilesOutsideDestination", destinationPath.FullName, destinationDirectory.FullName); 197Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFileMatch", zipArchiveEntry.FullName, destinationPath.FullName, nameof(SkipUnchangedFiles), "true"); 202Log.LogErrorFromResources("Unzip.FileComment", zipArchiveEntry.FullName, destinationPath.FullName); 224string lockedFileMessage = LockCheck.GetLockedFileMessage(destinationPath.FullName); 225Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotMakeFileWriteable", zipArchiveEntry.FullName, destinationPath.FullName, e.Message, lockedFileMessage); 232Log.LogMessageFromResources(MessageImportance.Normal, "Unzip.FileComment", zipArchiveEntry.FullName, destinationPath.FullName); 257using (FileStream destination = new FileStream(destinationPath.FullName, fileStreamOptions)) 273Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotExtractFile", zipArchiveEntry.FullName, destinationPath.FullName, e.Message);
ZipDirectory.cs (18)
66Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorDirectoryDoesNotExist", sourceDirectory.FullName); 80Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFileExists", destinationFile.FullName); 87File.Delete(destinationFile.FullName); 91string lockedFileMessage = LockCheck.GetLockedFileMessage(destinationFile.FullName); 92Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, lockedFileMessage); 102Log.LogErrorFromResources("ZipDirectory.Comment", sourceDirectory.FullName, destinationFile.FullName); 106Log.LogMessageFromResources(MessageImportance.High, "ZipDirectory.Comment", sourceDirectory.FullName, destinationFile.FullName); 109ZipFile.CreateFromDirectory(sourceDirectory.FullName, destinationFile.FullName); 113ZipFile.CreateFromDirectory(sourceDirectory.FullName, destinationFile.FullName, compressionLevel.Value, includeBaseDirectory: false); 129ZipFile.CreateFromDirectory(sourceDirectory.FullName, destinationFile.FullName); 135Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, string.Empty);
Microsoft.Build.Tasks.UnitTests (19)
ConvertToAbsolutePath_Tests.cs (3)
44Assert.EndsWith(testFile.FullName, t.AbsolutePaths[0].ItemSpec); 76Assert.EndsWith(testFile.FullName, t.AbsolutePaths[0].ItemSpec); 106Assert.Equal(testFile.FullName, t.AbsolutePaths[0].ItemSpec);
DownloadFile_Tests.cs (9)
79file.Exists.ShouldBeTrue(file.FullName); 81File.ReadAllText(file.FullName).ShouldBe("Success!"); 83downloadFile.DownloadedFile.ItemSpec.ShouldBe(file.FullName); 124file.Exists.ShouldBeTrue(file.FullName); 126File.ReadAllText(file.FullName).ShouldBe("Success!"); 128downloadFile.DownloadedFile.ItemSpec.ShouldBe(file.FullName); 158file.Exists.ShouldBeTrue(file.FullName); 160File.ReadAllText(file.FullName).ShouldBe("Success!"); 162downloadFile.DownloadedFile.ItemSpec.ShouldBe(file.FullName);
FileStateTests.cs (3)
84Assert.Equal(info.FullName, state.Name); 213Assert.Equal(info.FullName, state.Name); 214string originalName = info.FullName;
FindUnderPath_Tests.cs (1)
110Assert.Equal(testFile.FullName, t.InPath[0].ItemSpec);
PortableTasks_Tests.cs (2)
59File.Copy(file.FullName, Path.Combine(folder, file.Name)); 60_outputHelper.WriteLine($"Copied {file.FullName} to {Path.Combine(folder, file.Name)}");
TestAssemblyInfo.cs (1)
138currentFolder = Directory.GetParent(currentFolder)?.FullName;
Microsoft.Build.UnitTests.Shared (2)
TestEnvironment.cs (2)
508string contents = File.ReadAllText(file.FullName); 511FileUtilities.DeleteNoThrow(file.FullName);
Microsoft.Build.Utilities.UnitTests (2)
TestAssemblyInfo.cs (1)
138currentFolder = Directory.GetParent(currentFolder)?.FullName;
ToolTask_Tests.cs (1)
664string directoryNamedSameAsTool = Directory.CreateDirectory(Path.Combine(tempDirectory, toolName)).FullName;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
8401csc = CreateCSharpCompiler(null, Directory.GetParent(baseDir).FullName, new[] { source, "/preferreduilang:en" }); 8429csc = CreateCSharpCompiler(null, Directory.GetParent(baseDir).FullName, new[] { source, "/preferreduilang:en", "/fullpaths" });
Microsoft.CodeAnalysis.Features (9)
MetadataAsSource\MetadataAsSourceFileService.cs (1)
135TryDeleteFolderWhichContainsReadOnlyFiles(directoryInfo.FullName);
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (8)
183Path.Combine(_cacheDirectoryInfo.FullName, ConvertToFileName(_source) + ".txt")); 344var tempFilePath = Path.Combine(_cacheDirectoryInfo.FullName, guidString + ".tmp"); 366_service._ioService.Replace(tempFilePath, databaseFileInfo.FullName, destinationBackupFileName: null, ignoreMetadataErrors: true); 372_service._ioService.Move(tempFilePath, databaseFileInfo.FullName); 386=> new FileInfo(Path.ChangeExtension(databaseFileInfo.FullName, ".bin")); 427getDatabaseBytes: () => isBinary ? _service._ioService.ReadAllBytes(databaseFileInfo.FullName) : databaseBytes, 442return (_service._ioService.ReadAllBytes(databaseBinaryFileInfo.FullName), isBinary: true); 449return (_service._ioService.ReadAllBytes(databaseFileInfo.FullName), isBinary: false);
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
44.Select(f => f.FullName)
Microsoft.CodeAnalysis.Scripting (1)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
34s_gacDirectory = Directory.GetParent(Path.GetDirectoryName(systemAssemblyFile)).Parent.FullName;
Microsoft.CodeAnalysis.Workspaces (1)
Rename\ConflictEngine\MutableConflictResolution.cs (1)
104var directory = Directory.GetParent(document.FilePath)?.FullName;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
157s_monoMSBuildDirectory = versionDirectory.EnumerateDirectories().SingleOrDefault(d => string.Equals(d.Name, "bin", StringComparison.OrdinalIgnoreCase))?.FullName;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
157s_monoMSBuildDirectory = versionDirectory.EnumerateDirectories().SingleOrDefault(d => string.Equals(d.Name, "bin", StringComparison.OrdinalIgnoreCase))?.FullName;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
NewlyCreatedProjectsFromDotNetNew.cs (1)
52?.Parent?.Parent?.Parent?.Parent?.Parent?.FullName;
Utilities\DotNetSdkMSBuildInstalled.cs (1)
31?.Parent?.Parent?.Parent?.Parent?.Parent?.FullName;
Microsoft.Data.Analysis.Tests (1)
test\Microsoft.ML.TestFramework\BaseTestClass.cs (1)
57OutDir = Path.Combine(currentAssemblyLocation.Directory.FullName, "TestOutput");
Microsoft.DotNet.Build.Tasks.Feed (5)
src\PublishArtifactsInManifestBase.cs (2)
752await DownloadFileAsync(client, artifactName, subPath, pdbStagingPath.FullName); 776File.Copy(looseFile, looseFileStagePath.FullName);
src\PushToBuildStorage.cs (3)
574DeleteFile(destFile.FullName); 606_log.LogMessage(MessageImportance.Low, $"Removing read-only attribute from \"{destFile.FullName}\"."); 607File.SetAttributes(destFile.FullName, FileAttributes.Normal);
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageIndex.cs (1)
39.Select(packageIndexFileInfo => $"{packageIndexFileInfo.FullName}:{packageIndexFileInfo.Length}:{packageIndexFileInfo.LastWriteTimeUtc.Ticks}"));
Microsoft.DotNet.Helix.JobSender (10)
Payloads\ArchivePayload.cs (6)
32Archive.FullName)); 36var alreadyUploadedFile = new FileInfo($"{Archive.FullName}.payload"); 39log?.Invoke($"Using previously uploaded payload for {Archive.FullName}"); 40return File.ReadAllText(alreadyUploadedFile.FullName); 43using (var stream = File.OpenRead(Archive.FullName)) 46File.WriteAllText(alreadyUploadedFile.FullName, zipUri.AbsoluteUri);
Payloads\DirectoryPayload.cs (4)
50return File.ReadAllText(alreadyUploadedFile.FullName); 61file.FullName.Substring(basePath.Length + 1); // +1 prevents it from including the leading backslash 69zip.CreateEntryFromFile(file.FullName, zipEntryName); 75File.WriteAllText(alreadyUploadedFile.FullName, zipUri.AbsoluteUri);
Microsoft.DotNet.Helix.Sdk (1)
CommandPayload.cs (1)
58File.WriteAllText(scriptFile.FullName, contents.ToString(), s_utf8NoBom);
Microsoft.DotNet.Internal.SymbolHelper (2)
SymbolUploadHelper.cs (2)
269string packageExtractDir = packageDirInfo.FullName; 326logger.Information("Cleaning up temporary directory {0}", packageDirInfo.FullName);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiAddFileTests.cs (2)
95projXml.Load(csproj.FullName); 120projXml.Load(csproj.FullName);
Microsoft.DotNet.SwaggerGenerator.CmdLine (2)
Program.cs (2)
107string fullPath = Path.Combine(outputDirectory.FullName, path); 110File.WriteAllText(file.FullName, contents);
Microsoft.DotNet.SwaggerGenerator.MSBuild (4)
GenerateSwaggerCode.cs (4)
85string fullPath = Path.Combine(outputDirectory.FullName, path); 88Log.LogMessage(MessageImportance.Normal, $"Writing file '{file.FullName}'"); 89File.WriteAllText(file.FullName, contents); 90generatedFiles.Add(new TaskItem(file.FullName));
Microsoft.Extensions.AI.Evaluation.Console (4)
Commands\CleanCacheCommand.cs (1)
25string storageRootPath = storageRootDir.FullName;
Commands\CleanResultsCommand.cs (1)
30string storageRootPath = storageRootDir.FullName;
Commands\ReportCommand.cs (2)
35string storageRootPath = storageRootDir.FullName; 79string outputFilePath = outputFile.FullName;
Microsoft.Extensions.AI.Evaluation.Reporting (4)
Storage\DiskBasedResultStore.cs (4)
76string.Format(CultureInfo.CurrentCulture, DeserializationFailedMessage, resultFile.FullName)) 97var resultFile = new FileInfo(Path.Combine(resultDir.FullName, $"{result.IterationName}.json")); 302var scenarioDir = new DirectoryInfo(Path.Combine(executionDir.FullName, scenarioName)); 338var resultFile = new FileInfo(Path.Combine(scenarioDir.FullName, $"{iterationName}.json"));
Microsoft.Extensions.AI.Templates.Tests (1)
Infrastructure\WellKnownPaths.cs (1)
60directory = Directory.GetParent(directory)?.FullName;
Microsoft.Extensions.ApiDescription.Tool.Tests (36)
GetDocumentTests.cs (36)
34"--output", outputPath.FullName, 35"--file-list", Path.Combine(outputPath.FullName, "file-list.cache") 39using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample.json"))); 60"--output", outputPath.FullName, 61"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 66using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample.json"))); 86"--output", outputPath.FullName, 87"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 93using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample.json"))); 113"--output", outputPath.FullName, 114"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 119var expectedDocumentPath = Path.Combine(outputPath.FullName, "Sample_internal.json"); 122var documentNames = Directory.GetFiles(outputPath.FullName).Where(documentName => documentName.EndsWith(".json", StringComparison.Ordinal)).ToList(); 126using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 147"--output", outputPath.FullName, 148"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 154Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 155Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 156Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_invalid.json"))); 176"--output", outputPath.FullName, 177"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 182Assert.True(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}.json"))); 183Assert.True(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}_internal.json"))); 184Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 185Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 203"--output", outputPath.FullName, 204"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 211Assert.False(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}.json"))); 212Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 213Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 229"--output", outputPath.FullName, 230"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 235Assert.False(File.Exists(Path.Combine(outputPath.FullName, ".json"))); 236Assert.False(File.Exists(Path.Combine(outputPath.FullName, "_internal.json"))); 237Assert.True(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 238Assert.True(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json")));
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalDirectoryInfo.cs (1)
46public string PhysicalPath => _info.FullName;
PhysicalFileInfo.cs (1)
32public string PhysicalPath => _info.FullName;
Microsoft.Extensions.FileSystemGlobbing (6)
Abstractions\DirectoryInfoWrapper.cs (5)
77new DirectoryInfo(Path.Combine(_directoryInfo.FullName, name)), 96$"More than one sub directories are found under {_directoryInfo.FullName} with name {name}."); 103=> new FileInfoWrapper(new FileInfo(Path.Combine(_directoryInfo.FullName, name))); 112/// Equals the value of <seealso cref="System.IO.FileSystemInfo.FullName" />. 114public override string FullName => _directoryInfo.FullName;
Abstractions\FileInfoWrapper.cs (1)
41public override string FullName => _fileInfo.FullName;
Microsoft.Extensions.SecretManager.Tools.Tests (4)
TemporaryFileProvider.cs (1)
14Root = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "tmpfiles", Guid.NewGuid().ToString())).FullName;
UserSecretsTestFixture.cs (3)
63Path.Combine(projectPath.FullName, "TestProject.csproj"), 77_disposables.Push(() => TryDelete(projectPath.FullName)); 79return projectPath.FullName;
Microsoft.Maui.Resizetizer (10)
AndroidAdaptiveIconGenerator.cs (3)
66 var dir = Path.Combine(fullIntermediateOutputPath.FullName, dpi.Path); 110 var dir = Path.Combine(fullIntermediateOutputPath.FullName, dpi.Path); 143 var dir = Path.Combine(fullIntermediateOutputPath.FullName, "mipmap-anydpi-v26");
ResizeImageInfo.cs (6)
83 throw new FileNotFoundException("Unable to find background file: " + fileInfo.FullName, fileInfo.FullName); 85 info.Filename = fileInfo.FullName; 122 throw new FileNotFoundException("Unable to find foreground file: " + fgFileInfo.FullName, fgFileInfo.FullName); 124 info.ForegroundFilename = fgFileInfo.FullName;
Resizer.cs (1)
53 destination = Path.Combine(fullIntermediateOutputPath.FullName, destination);
Microsoft.ML.AutoML (4)
Experiment\ModelContainer.cs (2)
27using (var fs = File.Create(fileInfo.FullName)) 43using (var stream = new FileStream(_fileInfo.FullName, FileMode.Open, FileAccess.Read, FileShare.Read))
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"));
Microsoft.ML.Core.Tests (5)
UnitTests\FileSource.cs (5)
30var dirName = Directory.CreateDirectory("MultiFileSourceUnitTest").FullName; 55var dataDir = Directory.CreateDirectory("MultiFileSourceUnitTest/Data").FullName; 63var dataFolderDir = Directory.CreateDirectory("MultiFileSourceUnitTest/DataFolder").FullName; 64var subFolder1Dir = Directory.CreateDirectory("MultiFileSourceUnitTest/DataFolder/SubFolder1").FullName; 65var subFolder2Dir = Directory.CreateDirectory("MultiFileSourceUnitTest/DataFolder/SubFolder2").FullName;
Microsoft.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
49OutDir = Path.Combine(currentAssemblyLocation.Directory.FullName, "TestOutput");
Microsoft.ML.PerformanceTests (3)
Harness\ProjectGenerator.cs (2)
57<ProjectReference Include=""{GetProjectFilePath(buildPartition.RepresentativeBenchmarkCase.Descriptor.Type, logger).FullName}"" /> 70return string.Join(Environment.NewLine, File.ReadAllLines(csproj.FullName).Where(line => line.Contains("<NativeAssemblyReference")));
ImageClassificationBench.cs (1)
211string assemblyFolderPath = dataRoot.Directory.FullName;
Microsoft.ML.Samples (4)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
312string assemblyFolderPath = _dataRoot.Directory.FullName;
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
353string assemblyFolderPath = _dataRoot.Directory.FullName;
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
309string assemblyFolderPath = _dataRoot.Directory.FullName;
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
330string assemblyFolderPath = _dataRoot.Directory.FullName;
Microsoft.ML.Samples.GPU (4)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
312string assemblyFolderPath = _dataRoot.Directory.FullName;
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
353string assemblyFolderPath = _dataRoot.Directory.FullName;
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
309string assemblyFolderPath = _dataRoot.Directory.FullName;
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
330string assemblyFolderPath = _dataRoot.Directory.FullName;
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
29directory = Directory.GetParent(directory).FullName;
Microsoft.ML.SearchSpace.Tests (2)
TestBase.cs (2)
41return Path.Combine(testDataDir.FullName, fileName).Replace(cwd, "."); 53return Path.Combine(testDataDir.FullName, folderName).Replace(cwd, ".");
Microsoft.ML.TestFramework (7)
BaseTestClass.cs (1)
57OutDir = Path.Combine(currentAssemblyLocation.Directory.FullName, "TestOutput");
CopyAction.cs (6)
31file.CopyTo(destFile.FullName, true); 34file.CopyTo(destFile.FullName, true); 46var deploymentDirectory = testDirectory.Parent.FullName; 53CopyAll(dir.FullName, testDirectory.FullName); 54CopyAll(Path.Combine(deploymentDirectory, "AutoLoad"), testDirectory.FullName);
Microsoft.ML.TestFrameworkCommon (1)
TestCommon.cs (1)
78directory = Directory.GetParent(directory).FullName;
Microsoft.VisualBasic.Core (6)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
392m_sFullPath = (New FileInfo(sPath)).FullName
Microsoft\VisualBasic\FileIO\FileSystem.vb (2)
1498Return DInfo.GetFiles(IO.Path.GetFileName(FullPath))(0).FullName 1502Return DInfo.GetDirectories(IO.Path.GetFileName(FullPath))(0).FullName
Microsoft\VisualBasic\FileSystem.vb (3)
405FileName = file.FullName 1323Result = (New FileInfo(sPath)).FullName 1392FileName = (New FileInfo(FileName)).FullName
Microsoft.VisualBasic.Tests (3)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (3)
350Assert.Equal(info.FullName, TestDirectory); 381Assert.Equal(info.FullName, FileInfoFromSystemIO.FullName);
MSBuildTaskHost (3)
BuildEnvironmentHelper.cs (2)
584=> currentToolsDirectory.Parent?.FullName, 597MSBuildToolsDirectoryRoot = currentToolsDirectory.Parent?.FullName;
FileUtilities.cs (1)
1292return parent?.FullName ?? path;
PresentationCore (1)
MS\Internal\FontCache\DWriteFactory.cs (1)
63localPath = Directory.GetParent(fontCollectionUri.LocalPath).FullName + Path.DirectorySeparatorChar;
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
389templateList.Add(new Uri(file.FullName));
ResultsOfTGenerator (2)
Program.cs (2)
214Console.WriteLine($"{file.Length:N0} bytes written to {file.FullName} successfully!"); 300Console.WriteLine($"{file.Length:N0} bytes written to {file.FullName} successfully!");
Roslyn.Compilers.Extension (1)
CompilerPackage.cs (1)
107if (!filesToWrite.ContainsKey(file.FullName))
RulesetToEditorconfigConverter.UnitTests (4)
RulesetToEditorconfigConverterTests.cs (4)
22var ruleset = Path.Combine(directory.FullName, PrimaryRulesetName); 28var includedRuleset = Path.Combine(directory.FullName, IncludedRulesetName); 32var editorconfigPath = Path.Combine(directory.FullName, ".editorconfig"); 45Directory.Delete(directory.FullName, recursive: true);
ServerComparison.FunctionalTests (2)
Helpers.cs (2)
19var solutionFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "FunctionalTests.slnf")); 22return Path.GetFullPath(Path.Combine(directoryInfo.FullName, "..", "..", "testassets", "ServerComparison.TestSites"));
StaticFilesAuth (4)
Startup.cs (4)
52return string.Equals(directory.FullName, basePath, StringComparison.OrdinalIgnoreCase) 53|| string.Equals(directory.FullName, usersPath, StringComparison.OrdinalIgnoreCase) 54|| string.Equals(directory.FullName, userPath, StringComparison.OrdinalIgnoreCase) 55|| directory.FullName.StartsWith(userPath + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase);
System.CodeDom (1)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
160return Directory.CreateTempSubdirectory().FullName;
System.Configuration.ConfigurationManager (2)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
160return Directory.CreateTempSubdirectory().FullName;
System\Configuration\LocalFileSettingsProvider.cs (1)
327file = Path.Combine(previousDirectory.FullName, ConfigurationManagerInternalFactory.Instance.UserConfigFilename);
System.Formats.Tar (4)
System\Formats\Tar\TarFile.cs (4)
337writer.WriteEntry(di.FullName, GetEntryNameForBaseDirectory(di.Name)); 392await writer.WriteEntryAsync(di.FullName, GetEntryNameForBaseDirectory(di.Name), cancellationToken).ConfigureAwait(false); 445includeBaseDirectory && di.Parent != null ? di.Parent.FullName : di.FullName;
System.IO.Compression.ZipFile (4)
System\IO\Compression\ZipFile.Create.cs (3)
513string basePath = di.FullName; 517basePath = di.Parent.FullName; 520FileSystemEnumerable<(string, CreateEntryType)> fse = CreateEnumerableForCreate(di.FullName);
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
115string destinationDirectoryFullPath = di.FullName;
System.IO.Packaging (1)
System\IO\Packaging\Package.cs (1)
884package = new ZipPackage(packageFileInfo.FullName, packageMode, packageAccess, packageShare);
System.IO.Ports (4)
System\IO\Ports\SerialPort.Unix.cs (4)
56(File.Exists(entry.FullName + "/device/id") || 57Directory.Exists(entry.FullName + "/device/of_node"))) || 58(!isTtyS && Directory.Exists(entry.FullName + "/device/tty")) || 60(isTtyGS && (File.Exists(entry.FullName + "/dev"))))
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (4)
163if (!new DirectoryInfo(Path.GetDirectoryName(FullName)!).Exists) 164throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, FullName)); 167throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, FullName), FullName);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (3)
110/// If a link does not exist in <see cref="FullName"/>, or this instance does not represent a link, returns <see langword="null"/>. 149/// Creates a symbolic link located in <see cref="FullName"/> that points to the specified <paramref name="pathToTarget"/>. 158/// <exception cref="IOException">A file or directory already exists in the location of <see cref="FullName"/>.
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\OpenSslCachedDirectoryStoreProvider.cs (1)
62Interop.Crypto.X509StackAddDirectoryStore(newColl, info.FullName);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
172string fullPath = file.FullName;
System.Windows.Forms.IntegrationTests.Common (2)
TestHelpers.cs (2)
223string repoRoot = Directory.GetParent(gitPath).FullName; 254currentDirectory = Directory.GetParent(currentDirectory).FullName;
Templates.Blazor.Tests (5)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
488Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
464Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 903if (!TryGetOpenSslHash(cert.FullName, out var hash)) 923Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
163Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
Templates.Blazor.WebAssembly.Auth.Tests (5)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
488Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
464Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 903if (!TryGetOpenSslHash(cert.FullName, out var hash)) 923Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
163Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
Templates.Blazor.WebAssembly.Tests (5)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
488Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
464Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 903if (!TryGetOpenSslHash(cert.FullName, out var hash)) 923Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
163Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
Templates.Mvc.Tests (5)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
488Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
464Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 903if (!TryGetOpenSslHash(cert.FullName, out var hash)) 923Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
163Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
Templates.Tests (5)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
488Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
464Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 903if (!TryGetOpenSslHash(cert.FullName, out var hash)) 923Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
163Log.DirectoryPermissionsNotSecure(dirInfo.FullName);