905 references to GetDirectoryName
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
223string directoryName = Path.GetDirectoryName(fileName);
Aspire.Dashboard.Tests (1)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
43var currentAssemblyDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!;
Aspire.EndToEnd.Tests (6)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
115cmd.WithWorkingDirectory(Path.GetDirectoryName(projectDir)!)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (3)
102sdkForTemplatePath = Path.GetDirectoryName(dotnetPath)!; 125sdkForTemplatePath = Path.GetDirectoryName(dotnetPath)!; 135string? baseDir = Path.GetDirectoryName(EnvironmentVariables.SdkForTemplateTestingPath);
tests\Shared\TemplatesTesting\RunCommand.cs (2)
13WithEnvironmentVariable("DOTNET_ROOT", Path.GetDirectoryName(_buildEnvironment.DotNet)!); 14WithEnvironmentVariable("DOTNET_INSTALL_DIR", Path.GetDirectoryName(_buildEnvironment.DotNet)!);
Aspire.Hosting (9)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
25if (Path.GetDirectoryName(value) != string.Empty)
Dashboard\DashboardLifecycleHook.cs (1)
107var dashboardWorkingDirectory = Path.GetDirectoryName(fullyQualifiedDashboardPath);
Dcp\DcpExecutor.cs (1)
844exeSpec.Spec.WorkingDirectory = Path.GetDirectoryName(projectMetadata.ProjectPath);
Dcp\DcpHost.cs (1)
222var directoryName = Path.GetDirectoryName(socketPath);
Dcp\DcpOptions.cs (1)
139if (Path.GetDirectoryName(options.CliPath) is string dcpDir && !string.IsNullOrEmpty(dcpDir))
ProjectResourceBuilderExtensions.cs (2)
693var projectDirectoryPath = Path.GetDirectoryName(projectFilePath) ?? throw new InvalidOperationException($"Unable to get directory name for {projectFilePath}"); 719var projectDirectoryPath = Path.GetDirectoryName(projectMetadata.ProjectPath)!;
Publishing\ManifestPublishingContext.cs (1)
63var manifestDirectory = Path.GetDirectoryName(fullyQualifiedManifestPath) ?? throw new DistributedApplicationException("Could not get directory name of output path");
src\Shared\SecretsStore.cs (1)
80var directoryName = Path.GetDirectoryName(_secretsFilePath);
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (1)
159using var template = GetBicepTemplateFile(Path.GetDirectoryName(context.ManifestPath), deleteTemporaryFileOnDispose: false);
Provisioning\Provisioners\AzureProvisioner.cs (1)
244Directory.CreateDirectory(Path.GetDirectoryName(userSecretsPath)!);
Aspire.Hosting.NodeJs (1)
NodeExtensions.cs (1)
31workingDirectory ??= Path.GetDirectoryName(scriptPath)!;
Aspire.Hosting.Tests (2)
AspireStoreTests.cs (1)
18Assert.True(Directory.Exists(Path.GetDirectoryName(store.BasePath)));
UserSecretsParameterDefaultTests.cs (1)
77var directoryName = Path.GetDirectoryName(secretsFilePath);
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
230var projectDirectory = Path.GetDirectoryName(project.GetProjectMetadata().ProjectPath) ?? throw new UnreachableException();
Aspire.Templates.Tests (6)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
115cmd.WithWorkingDirectory(Path.GetDirectoryName(projectDir)!)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (3)
102sdkForTemplatePath = Path.GetDirectoryName(dotnetPath)!; 125sdkForTemplatePath = Path.GetDirectoryName(dotnetPath)!; 135string? baseDir = Path.GetDirectoryName(EnvironmentVariables.SdkForTemplateTestingPath);
tests\Shared\TemplatesTesting\RunCommand.cs (2)
13WithEnvironmentVariable("DOTNET_ROOT", Path.GetDirectoryName(_buildEnvironment.DotNet)!); 14WithEnvironmentVariable("DOTNET_INSTALL_DIR", Path.GetDirectoryName(_buildEnvironment.DotNet)!);
blazor-devserver (1)
Server\Program.cs (1)
28var applicationDirectory = Path.GetDirectoryName(applicationPath)!;
BuildActionTelemetryTable (1)
Program.cs (1)
24private static readonly string s_executingPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!;
BuildBoss (6)
Program.cs (2)
68(solutionFiles.Count > 0) ? Path.GetDirectoryName(solutionFiles[0]) : AppContext.BaseDirectory); 90dir = Path.GetDirectoryName(dir);
ProjectData.cs (1)
20internal string Directory => Path.GetDirectoryName(FilePath);
ProjectUtil.cs (1)
115var directory = Path.GetDirectoryName(Key.FilePath);
SolutionCheckerUtil.cs (2)
37SolutionPath = Path.GetDirectoryName(SolutionFilePath); 156var directory = Path.GetDirectoryName(projectKey.FilePath);
BuildValidator (3)
IldasmUtilities.cs (1)
27var directory = Path.GetDirectoryName(typeof(IldasmUtilities).GetTypeInfo().Assembly.Location) ?? throw new DirectoryNotFoundException();
LocalReferenceResolver.cs (1)
131filePath = Path.Combine(Path.GetDirectoryName(filePath)!, metadataReferenceInfo.FileName);
Records.cs (1)
17internal string TargetFramework => Path.GetFileName(Path.GetDirectoryName(FilePath))!;
Crossgen2Tasks (5)
PrepareForReadyToRunCompilation.cs (2)
147crossgen1CreatePDBCommand = $"/CreatePDB \"{Path.GetDirectoryName(outputPDBImage)}\""; 169crossgen1CreatePDBCommand = $"/CreatePerfMap \"{Path.GetDirectoryName(outputPDBImage)}\"";
RunReadyToRunCompiler.cs (3)
324result.AppendLine($"--pdb-path:{Path.GetDirectoryName(_outputPDBImage)}"); 329result.AppendLine($"--perfmap-path:{Path.GetDirectoryName(_outputPDBImage)}"); 391Directory.CreateDirectory(Path.GetDirectoryName(_outputR2RImage));
csi (1)
Csi.cs (1)
24string csiDirectory = Path.GetDirectoryName(typeof(Csi).GetTypeInfo().Assembly.ManifestModule.FullyQualifiedName);
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
328var exportDir = Path.GetDirectoryName(path); 514var targetDirectoryPath = Path.GetDirectoryName(path);
dotnet-getdocument (2)
Commands\InvokeCommand.cs (2)
43var thisPath = Path.GetFullPath(Path.GetDirectoryName(typeof(InvokeCommand).Assembly.Location)); 47var targetDirectory = Path.GetDirectoryName(assemblyPath);
dotnet-openapi (2)
Commands\BaseCommand.cs (2)
277var directory = Path.GetDirectoryName(fullPath); 551var destinationDirectory = Path.GetDirectoryName(destinationPath);
dotnet-razorpagegenerator (1)
Program.cs (1)
194var basePath = System.IO.Path.GetDirectoryName(_source.PhysicalPath);
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (1)
164string dirPath = Path.GetDirectoryName(path);
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
105string directoryPath = Path.GetDirectoryName(path);
dotnet-svcutil-lib (24)
Bootstrapper\SvcutilBootstrapper.cs (2)
104Directory.CreateDirectory(Path.GetDirectoryName(projectFullPath)); 117var svcutilPkgRef = ProjectDependency.FromAssembly(Path.Combine(Path.GetDirectoryName(Tool.FullPath), Tool.AssemblyName + ".dll"));
CommandProcessorOptions.cs (8)
170fileOptions.ResolveFullPathsFrom(new DirectoryInfo(Path.GetDirectoryName(fileUri.LocalPath))); 390Path.GetDirectoryName(this.OutputFile.FullName) : Path.GetDirectoryName(Path.Combine(Directory.GetCurrentDirectory(), this.OutputFile.OriginalPath())); 491this.UpdateServiceReferenceFolder = Path.GetDirectoryName(this.UpdateServiceReferenceFolder); 515var svcRefNames = paramsFiles.Select(pf => { PathHelper.GetRelativePath(Path.GetDirectoryName(pf), new DirectoryInfo(projectDir), out var relPath); return relPath; }) 536var relDir = Path.GetDirectoryName(fileRelPath); 555updateOptions.ResolveFullPathsFrom(new DirectoryInfo(Path.GetDirectoryName(paramsFilePath))); 704Directory.Delete(Path.GetDirectoryName(projectFullPath));
Metadata\MetadataDocumentSaver.cs (1)
313var dirPath = Path.GetDirectoryName(filePath);
Metadata\MetadataFileNameManager.cs (2)
188var dirPath = Path.GetDirectoryName(filePath); 237string dirPath = Path.GetDirectoryName(path);
Metadata\ServiceDescriptor.cs (1)
113string toolPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
OutputPathHelper.cs (1)
68string directoryPath = Path.GetDirectoryName(path);
Shared\MSBuildProj.cs (3)
168DirectoryPath = Path.GetDirectoryName(projectFullPath) 389string projectDir = Path.GetDirectoryName(fullPath); 1006.Where(f => PathHelper.GetFolderName(Path.GetDirectoryName(f)) == this.TargetFramework || Directory.GetParent(Directory.GetParent(f).FullName).Name == this.TargetFramework)
Shared\ProjectPropertyResolver.cs (4)
32var workingDirectory = Path.GetDirectoryName(projectPath); 146var dotnetDir = Path.GetDirectoryName(typeof(int).Assembly.Location); 151dotnetDir = Path.GetDirectoryName(dotnetDir); 202var projectDir = Path.GetDirectoryName(projectPath);
Shared\Utilities\PathHelper.cs (2)
113var childDirectory = childFileName.Contains("*") ? Path.GetDirectoryName(childPath) : childPath; 259workingDir = Path.GetDirectoryName(workingDir);
dotnet-svcutil-lib.Tests (9)
E2ETests.cs (3)
177FileUtil.CopyDirectory(wsdlDocsSrdDir, Path.GetDirectoryName(wsdlFile)); 182uri = uri.Replace("$wsdlDir$", $"{Path.GetDirectoryName(wsdlFile)}{Path.DirectorySeparatorChar}"); 224var assemblyPath = Path.Combine(Path.GetDirectoryName(binProjPath), "bin", "Debug", "netstandard1.3", "BinLib.dll");
ProjectUtils.cs (3)
23var projectDir = Path.GetDirectoryName(filePath); 27Directory.CreateDirectory(Path.GetDirectoryName(filePath)); 33FileUtil.TryDeleteDirectory(Path.Combine(Path.GetDirectoryName(filePath), "obj"));
TestInit.cs (3)
429Directory.CreateDirectory(Path.GetDirectoryName(expected)); 457Directory.CreateDirectory(Path.GetDirectoryName(scriptPath)); 592g_RepositoryRoot = Path.GetDirectoryName(rootSolutionFolder);
dotnet-user-jwts (9)
Commands\ClearCommand.cs (1)
68var appsettingsFilePath = Path.Combine(Path.GetDirectoryName(project), appsettingsFile);
Commands\CreateCommand.cs (1)
264var appsettingsFilePath = Path.Combine(Path.GetDirectoryName(project), appsettingsFile);
Commands\RemoveCommand.cs (1)
59var appsettingsFilePath = Path.Combine(Path.GetDirectoryName(project), appsettingsFile);
Helpers\DevJwtCliHelpers.cs (3)
58else if (!File.Exists(Path.Combine(Path.GetDirectoryName(projectPath), appsettingsFile))) 60reporter.Error(Resources.FormatRemoveCommand_AppsettingsFileNotFound_Error(Path.Combine(Path.GetDirectoryName(projectPath), appsettingsFile))); 75var launchSettingsFilePath = Path.Combine(Path.GetDirectoryName(project)!, "Properties", "launchSettings.json");
Helpers\JwtStore.cs (1)
17_filePath = Path.Combine(Path.GetDirectoryName(PathHelper.GetSecretsPathFromSecretsId(userSecretsId)), FileName);
Helpers\SigningKeysHandler.cs (1)
63Directory.CreateDirectory(Path.GetDirectoryName(secretsFilePath));
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
135var assemblyDir = Path.GetDirectoryName(typeof(ProjectIdResolver).Assembly.Location);
dotnet-user-secrets (3)
Internal\SecretsStore.cs (2)
33var secretDir = Path.GetDirectoryName(_secretsFilePath); 71Directory.CreateDirectory(Path.GetDirectoryName(_secretsFilePath));
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
135var assemblyDir = Path.GetDirectoryName(typeof(ProjectIdResolver).Assembly.Location);
GenerateAnalyzerNuspec (1)
Program.cs (1)
181var directoryName = Path.GetDirectoryName(readmePackageLocation) ?? string.Empty;
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
897var assemblyDir = Path.GetDirectoryName(assemblyPath);
HelixTestRunner (1)
TestRunner.cs (1)
315var logName = $"{Path.GetFileName(Path.GetDirectoryName(file))}_{Path.GetFileName(file)}";
HttpStress (2)
Program.cs (2)
374Console.WriteLine(" .NET Core: " + Path.GetFileName(Path.GetDirectoryName(typeof(object).Assembly.Location))); 375Console.WriteLine(" ASP.NET Core: " + Path.GetFileName(Path.GetDirectoryName(typeof(IWebHostBuilder).Assembly.Location)));
IdeBenchmarks (1)
Program.cs (1)
23return Path.Combine(Path.GetDirectoryName(sourceFilePath), @"..\..\..");
IdeCoreBenchmarks (3)
CSharpIdeAnalyzerBenchmarks.cs (1)
49var analyzerAssemblyPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Microsoft.CodeAnalysis.CSharp.Features.dll");
IncrementalAnalyzerBenchmarks.cs (1)
47var analyzerAssemblyPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Microsoft.CodeAnalysis.Features.dll");
Program.cs (1)
37return Path.Combine(Path.GetDirectoryName(sourceFilePath), @"..\..\..");
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
245var sourceDirectory = new DirectoryInfo(Path.GetDirectoryName(moduleNodes.First().Attribute("image").Value));
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
IIS.Tests (1)
Utilities\TestServer.cs (1)
33internal static string BasePath => Path.Combine(Path.GetDirectoryName(typeof(TestServer).Assembly.Location),
IISExpress.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
245var sourceDirectory = new DirectoryInfo(Path.GetDirectoryName(moduleNodes.First().Attribute("image").Value));
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
illink (2)
ILLink.Tasks (2)
LinkTask.cs (2)
269 var taskDirectory = Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location); 273 _illinkPath = Path.Combine (Path.GetDirectoryName (taskDirectory), "net", "illink.dll");
installer.tasks (2)
GenerateFileVersionProps.cs (1)
135Directory.CreateDirectory(Path.GetDirectoryName(PlatformManifestFile));
GenerateRunScript.cs (1)
41Directory.CreateDirectory(Path.GetDirectoryName(OutputPath));
InteractiveHost.UnitTests (5)
AbstractInteractiveHostTests.cs (1)
50dir = Path.GetDirectoryName(dir);
InteractiveHostCoreInitTests.cs (2)
32var dir = Path.GetDirectoryName(typeof(InteractiveHostCoreInitTests).Assembly.Location); 57var dllDir = Path.GetDirectoryName(dll.Path)!;
InteractiveHostDesktopInitTests.cs (1)
30var dllDir = Path.GetDirectoryName(dll.Path)!;
TestUtils.cs (1)
11public static readonly string HostRootPath = Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "Host");
Interop.FunctionalTests (1)
Http3\Http3TlsTests.cs (1)
436Directory.CreateDirectory(Path.GetDirectoryName(path));
InteropWebsite (1)
Program.cs (1)
57var basePath = Path.GetDirectoryName(typeof(Program).Assembly.Location);
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
36var runtimeDir = Path.GetDirectoryName(corelib)!;
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
36var runtimeDir = Path.GetDirectoryName(corelib)!;
Microsoft.Arcade.Common (2)
FileSystem.cs (2)
21public string? GetDirectoryName(string? path) => Path.GetDirectoryName(path); 37string? dirPath = Path.GetDirectoryName(path);
Microsoft.Arcade.Test.Common (1)
MockFileSystem.cs (1)
50public string? GetDirectoryName(string? path) => Path.GetDirectoryName(path);
Microsoft.AspNetCore.App.UnitTests (1)
TargetingPackTests.cs (1)
415string expectedLanguage = Path.GetFileName(Path.GetDirectoryName(assemblyPath));
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (10)
UserJwtsTestFixture.cs (2)
70Directory.CreateDirectory(Path.GetDirectoryName(PathHelper.GetSecretsPathFromSecretsId(TestSecretsId))); 94var secretsDir = Path.GetDirectoryName(PathHelper.GetSecretsPathFromSecretsId(TestSecretsId));
UserJwtsTests.cs (8)
62var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 74var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 106var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 123var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Local.json"); 197var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 215var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Local.json"); 233var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 251var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Local.json");
Microsoft.AspNetCore.BrowserTesting (1)
BrowserTestBase.cs (1)
39var basePath = Path.GetDirectoryName(typeof(BrowserTestBase).Assembly.Location);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
126Path.GetDirectoryName(assembly.Location)!,
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
306return Path.Combine(Path.GetDirectoryName(assembly.Location)!, $"{name}.staticwebassets.runtime.json");
Microsoft.AspNetCore.Components.WebView.Photino (1)
BlazorWindow.cs (1)
47var contentRootDir = Path.GetDirectoryName(Path.GetFullPath(hostPage))!;
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
BlazorWebView.cs (2)
180 appRootDir = Path.GetDirectoryName(entryAssemblyLocation)!; 187 var contentRootDirFullPath = Path.GetDirectoryName(hostPageFullPath)!;
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (2)
263 appRootDir = Path.GetDirectoryName(entryAssemblyLocation)!; 270 var contentRootDirFullPath = Path.GetDirectoryName(hostPageFullPath)!;
Microsoft.AspNetCore.Components.WebViewE2E.Test (2)
BasicBlazorHybridTest.cs (1)
23var thisProgramDir = Path.GetDirectoryName(typeof(Program).Assembly.Location);
WebViewManagerE2ETests.cs (1)
32WorkingDirectory = Path.GetDirectoryName(photinoTestProgramExePath),
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
328var exportDir = Path.GetDirectoryName(path); 514var targetDirectoryPath = Path.GetDirectoryName(path);
Microsoft.AspNetCore.Hosting (1)
StaticWebAssets\StaticWebAssetsLoader.cs (1)
77var basePath = string.IsNullOrEmpty(assemblyLocation) ? AppContext.BaseDirectory : Path.GetDirectoryName(assemblyLocation);
Microsoft.AspNetCore.Hosting.Tests (2)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (2)
20manifest.ContentRoots = new[] { Path.GetDirectoryName(typeof(ManifestStaticWebAssetsFileProviderTest).Assembly.Location) }; 616manifest.ContentRoots = new[] { Path.GetDirectoryName(typeof(ManifestStaticWebAssetsFileProviderTest).Assembly.Location) };
Microsoft.AspNetCore.Identity.Test (1)
IdentityUIScriptsTest.cs (1)
171var applicationPath = Path.GetDirectoryName(typeof(IdentityUIScriptsTest).Assembly.Location);
Microsoft.AspNetCore.InternalTesting (1)
AssemblyTestLog.cs (1)
274var dir = Path.GetDirectoryName(fileName);
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\RelatedAssemblyAttribute.cs (1)
72Path.GetDirectoryName(assembly.Location);
Microsoft.AspNetCore.OpenApi.Build.Tests (1)
GenerateAdditionalXmlFilesForOpenApiTests.cs (1)
22WorkingDirectory = Path.GetDirectoryName(projectFile),
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
185WorkingDirectory = Path.GetDirectoryName(iisExpressPath)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\CertificatePathWatcher.cs (3)
116var dir = Path.GetDirectoryName(path)!; 176var dirMetadata = _metadataForDirectory[Path.GetDirectoryName(path)!]; 219var dir = Path.GetDirectoryName(path)!;
src\Shared\CertificateGeneration\CertificateManager.cs (2)
328var exportDir = Path.GetDirectoryName(path); 514var targetDirectoryPath = Path.GetDirectoryName(path);
Microsoft.AspNetCore.Server.Kestrel.Tests (7)
KestrelConfigurationLoaderTests.cs (7)
279Directory.CreateDirectory(Path.GetDirectoryName(path)); 320Directory.CreateDirectory(Path.GetDirectoryName(devCertPath)); 446Directory.CreateDirectory(Path.GetDirectoryName(path)); 493Directory.CreateDirectory(Path.GetDirectoryName(path)); 542Directory.CreateDirectory(Path.GetDirectoryName(path)); 736Directory.CreateDirectory(Path.GetDirectoryName(path)); 892Directory.CreateDirectory(Path.GetDirectoryName(certificatePath));
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
src\SignalR\common\Shared\TestCertificates.cs (2)
35var certPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "TestCertificates", "testCert.pfx"); 41var certPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "TestCertificates", "testCertECC.pfx");
Microsoft.Build (40)
BackEnd\BuildManager\CacheSerialization.cs (1)
33Directory.CreateDirectory(Path.GetDirectoryName(fullPath));
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
151(_projectRootDirectory = Path.GetDirectoryName(RequestConfiguration.ProjectFullPath));
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
550projectDirectory[i] = Path.GetDirectoryName(projectPath);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
709Directory.CreateDirectory(Path.GetDirectoryName(cacheFile));
BackEnd\Shared\TargetResult.cs (2)
248string directoryName = Path.GetDirectoryName(filename); 272Directory.CreateDirectory(Path.GetDirectoryName(cacheFile));
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (3)
47var directoryOfTheProject = Path.GetDirectoryName(filePath); 66editorConfigFilePath = FileUtilities.GetPathOfFileAbove(EditorconfigFile, Path.GetDirectoryName(Path.GetDirectoryName(editorConfigFilePath)));
BuildCheck\Utilities\BuildCheckUtilities.cs (1)
15path = Path.Combine(Path.GetDirectoryName(projectFilePath)!, path);
BuildEnvironmentHelper.cs (1)
358string directory = Path.GetDirectoryName(msBuildAssembly);
Construction\ProjectRootElement.cs (2)
438_directory = Path.GetDirectoryName(newFullPath); 2109_directory = Path.GetDirectoryName(fullPath);
Construction\Solution\SolutionFile.cs (5)
252SolutionFileDirectory = Path.GetDirectoryName(_solutionFile); 646SolutionFileDirectory = Path.GetDirectoryName(_solutionFile); 675return FileUtilities.GetFullPath(solution.GetProperty("path").GetString(), Path.GetDirectoryName(solutionFilterFile), escape: false); 920new BuildEventFileInfo(FileUtilities.GetFullPath(project, Path.GetDirectoryName(_solutionFile))), 1145string etpProjectRelativeDir = Path.GetDirectoryName(etpProj.RelativePath);
Definition\Toolset.cs (1)
1099yield return (usingTask, Path.GetDirectoryName(defaultTasksFile));
ElementLocation\XmlDocumentWithLocation.cs (1)
360string directory = Path.GetDirectoryName(fullPath);
Evaluation\Expander.cs (6)
1639value = FileUtilities.EnsureTrailingSlash(Path.GetDirectoryName(elementLocation.File)); 1643string directory = Path.GetDirectoryName(elementLocation.File); 2512directoryName = Path.GetDirectoryName(rootedPath); 2528directoryName = Path.GetDirectoryName(directoryName); 2585directoryName = Path.GetDirectoryName(rootedPath); 3568string startingDirectory = String.IsNullOrWhiteSpace(elementLocation.File) ? String.Empty : Path.GetDirectoryName(elementLocation.File);
Evaluation\Expander\WellKnownFunctions.cs (1)
140returnVal = Path.GetDirectoryName(arg0);
FileUtilities.cs (2)
716string directory = Path.GetDirectoryName(FixFilePath(fileSpec)); 1495lookInDirectory = Path.GetDirectoryName(lookInDirectory);
FrameworkLocationHelper.cs (2)
804string baseLocation = Path.GetDirectoryName(currentRuntimePath); 1390Path.GetDirectoryName(typeof(object).Module.FullyQualifiedName),
Instance\ProjectInstance.cs (3)
374_directory = Path.GetDirectoryName(projectPath); 431_directory = Path.GetDirectoryName(projectPath); 3003DirectoryPath = Path.GetDirectoryName(projectFile)
Instance\TaskRegistry.cs (1)
384string replacedAssemblyFile = Path.Combine(Path.GetDirectoryName(assemblyFile), s_tasksCoreFilename);
Logging\BinaryLogger\BinaryLogger.cs (1)
185logDirectory = Path.GetDirectoryName(FilePath);
Logging\FileLogger.cs (1)
105logDirectory = Path.GetDirectoryName(Path.GetFullPath(_logFileName));
Modifiers.cs (1)
650return Path.GetDirectoryName(path) == null;
TypeLoader.cs (2)
54string msbuildDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); 189string[] localAssemblies = Directory.GetFiles(Path.GetDirectoryName(path), "*.dll");
Microsoft.Build.BuildCheck.UnitTests (4)
EndToEndTests.cs (4)
35private static string AssemblyLocation { get; } = Path.Combine(Path.GetDirectoryName(typeof(EndToEndTests).Assembly.Location) ?? AppContext.BaseDirectory); 580var projectDirectory = Path.GetDirectoryName(projectFile.Path); 694string? projectDirectory = Path.GetDirectoryName(projectFile.Path); 1039_env.SetCurrentDirectory(Path.GetDirectoryName(projectFile.Path));
Microsoft.Build.CommandLine.UnitTests (5)
MSBuildServer_Tests.cs (3)
111string? dir = Path.GetDirectoryName(markerFile.Path); 192string? dir = Path.GetDirectoryName(markerFile.Path); 331_env.SetCurrentDirectory(Path.GetDirectoryName(project.Path));
XMake_Tests.cs (2)
1237Directory.SetCurrentDirectory(Path.GetDirectoryName(RunnerUtilities.PathToCurrentlyRunningMsBuildExe)); 2768string source = Path.GetDirectoryName(RunnerUtilities.PathToCurrentlyRunningMsBuildExe);
Microsoft.Build.Engine.OM.UnitTests (18)
BuildEnvironmentHelper.cs (1)
358string directory = Path.GetDirectoryName(msBuildAssembly);
Construction\ProjectFormatting_Tests.cs (1)
712FileUtilities.DeleteDirectoryNoThrow(Path.GetDirectoryName(file), false);
Construction\ProjectRootElement_Tests.cs (2)
1775projectFileAssert.Invoke(Path.GetDirectoryName(initialLocation), Path.GetDirectoryName(reloadLocation), rootElement.DirectoryPath);
Definition\DefinitionEditing_Tests.cs (7)
285string wildcard = Path.Combine(Path.GetDirectoryName(paths[0]), "*.xxx;"); 667string directory = Path.GetDirectoryName(paths[0]); 788string directory = Path.GetDirectoryName(paths[0]); 1093string directory = Path.GetDirectoryName(paths[0]); 1133string directory = Path.GetDirectoryName(paths[0]); 1388string directory = Path.GetDirectoryName(paths[0]); 2209string wildcard = Path.Combine(Path.GetDirectoryName(paths[0]), "*.xxx;");
Definition\Project_Tests.cs (2)
3294var absoluteFile = Path.Combine(Path.GetDirectoryName(testFiles.ProjectFile), "1.foo"); 3772var absoluteFile = Path.Combine(Path.GetDirectoryName(testFiles.ProjectFile), "a.cs");
Definition\ProjectItem_Tests.cs (1)
1102var projectFileDir = Path.GetDirectoryName(projectFile);
FileUtilities.cs (2)
716string directory = Path.GetDirectoryName(FixFilePath(fileSpec)); 1495lookInDirectory = Path.GetDirectoryName(lookInDirectory);
NugetRestoreTests.cs (1)
25string msbuildExePath = Path.GetDirectoryName(RunnerUtilities.PathToCurrentlyRunningMsBuildExe)!;
TransientIO.cs (1)
65var parent = Path.GetDirectoryName(absolute);
Microsoft.Build.Engine.UnitTests (31)
BackEnd\SdkResultOutOfProc_Tests.cs (1)
200var sdkResolver = SetupSdkResolver(Path.GetDirectoryName(projectPath));
BackEnd\TaskBuilder_Tests.cs (2)
429<CreateItem Include='{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}\**\*.dll'> 643string directoryName = Path.GetDirectoryName(realTaskPath);
BuildEnvironmentHelper_Tests.cs (3)
26var msbuildPath = Path.GetDirectoryName(FileUtilities.ExecutingAssemblyPath); 35Path.GetDirectoryName(expectedMSBuildPath).ShouldBe(toolsDirectoryPath); 409BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory.ShouldBe(Path.GetDirectoryName(entryProcess));
Construction\SolutionFile_OldParser_Tests.cs (1)
2429solution.ProjectsInOrder[0].AbsolutePath.ShouldBe(Path.GetFullPath(Path.Combine(Path.GetDirectoryName(solution.FullPath)!, expectedRelativePath)));
Construction\SolutionFilter_Tests.cs (1)
125Directory.GetCurrentDirectory().ShouldNotBe(Path.GetDirectoryName(filterFile.Path));
Definition\ProjectEvaluationContext_Tests.cs (1)
992Directory.CreateDirectory(Path.GetDirectoryName(projectFilePath));
Definition\ToolsVersion_Tests.cs (3)
260if (Path.GetDirectoryName(file.Path).Equals(dir, StringComparison.OrdinalIgnoreCase) 266if (Path.GetDirectoryName(file.Path).Equals(overrideDir, StringComparison.OrdinalIgnoreCase) 973bool sameFolder = (String.Equals(Path.GetDirectoryName(candidate),
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (1)
1000Directory.CreateDirectory(Path.Combine(extnDir, Path.GetDirectoryName(relativeFilePath)));
Evaluation\ItemSpec_Tests.cs (1)
85return new ProjectInstanceItemSpec(itemSpec, expander, location, Path.GetDirectoryName(location.File));
Evaluation\ProjectSdkImplicitImport_Tests.cs (3)
548import.SdkResult.Path.ShouldBe(Path.GetDirectoryName(expectedSdkPath)); 676var expectedSdkPath = Path.GetDirectoryName(_sdkPropsPath); 679expectedSdkPath.ShouldBe(Path.GetDirectoryName(_sdkTargetsPath));
FileMatcher_Tests.cs (2)
106Directory.CreateDirectory(Path.GetDirectoryName(fullPath)); 2068candidateDirectoryName = Path.GetDirectoryName(normalizedCandidate);
FileUtilities_Tests.cs (10)
906string firstDirectory = Path.GetDirectoryName(Path.GetDirectoryName(filePath)); 907string tmpDirectory = Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(filePath))); 937string firstDirectory = Path.GetDirectoryName(Path.GetDirectoryName(filePath)); 938string tmpDirectory = Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(filePath)));
Graph\IsolateProjects_Tests.cs (1)
452var directory = Path.GetDirectoryName(path);
TypeLoader_Tests.cs (1)
201var tempDirectoryPath = Path.GetDirectoryName(newDllPath);
Microsoft.Build.Framework (3)
FileClassifier.cs (1)
181Path.GetDirectoryName(msBuildAssembly)?.EndsWith(@"\amd64", StringComparison.OrdinalIgnoreCase) == true
NativeMethods.cs (2)
890Path.GetDirectoryName(baseTypeLocation) 910dir = Path.GetDirectoryName(dir);
Microsoft.Build.Tasks.CodeAnalysis (2)
ManagedCompiler.cs (1)
543var clientDirectory = Path.GetDirectoryName(PathToBuiltInTool);
ManagedToolTask.cs (1)
222var buildTaskDirectory = Path.GetDirectoryName(buildTask.Location);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (13)
CscTests.cs (4)
656var taskPath = Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!; 669var taskPath = Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!; 710_ = Directory.CreateDirectory(Path.Combine(Path.GetDirectoryName(dirPath), "bincore")); 735var taskPath = Path.GetDirectoryName(taskFilePath);
GenerateMSBuildEditorConfigTests.cs (2)
246string executingLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)?.Replace('\\', '/') ?? string.Empty; 280string executingLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)?.Replace('\\', '/') ?? string.Empty;
IntegrationTests.cs (2)
98return ProcessUtilities.Run(file.Path, "", Path.GetDirectoryName(file.Path)); 609{ { "MyMSBuildToolsPath", Path.GetDirectoryName(typeof(IntegrationTests).Assembly.Location) } });
TargetTests.cs (1)
902var path = Path.Combine(Path.GetDirectoryName(assembly.Location)!, "Microsoft.Managed.Core.targets");
TestUtilities\DotNetSdkTestBase.cs (4)
126<MakeDir Directories=""{Path.GetDirectoryName(outputFile)}"" /> 152var testBinDirectory = Path.GetDirectoryName(typeof(DotNetSdkTests).Assembly.Location) ?? string.Empty; 207var workingDirectory = Path.GetDirectoryName(projectFilePath)!; 227var testBinDirectory = Path.GetDirectoryName(typeof(DotNetSdkTests).Assembly.Location);
Microsoft.Build.Tasks.Core (31)
AssemblyDependency\Reference.cs (1)
538_directoryName = Path.GetDirectoryName(_fullPath);
AssemblyDependency\ReferenceTable.cs (2)
945companionFile = Path.Combine(Path.GetDirectoryName(baseName), implementationFile); 2764item.SetMetadata(ItemMetadataNames.destinationSubDirectory, FileUtilities.EnsureTrailingSlash(Path.GetDirectoryName(satelliteFile)));
BootstrapperUtil\BootstrapperBuilder.cs (2)
457string folder = System.IO.Path.GetDirectoryName(file); 1477EnsureFolderExists(System.IO.Path.GetDirectoryName(strDestinationFileName));
BuildEnvironmentHelper.cs (1)
358string directory = Path.GetDirectoryName(msBuildAssembly);
Copy.cs (1)
283string destinationFolder = Path.GetDirectoryName(destinationFileState.Name);
CreateCSharpManifestResourceName.cs (1)
165string directoryName = Path.GetDirectoryName(info.cultureNeutralFilename);
CreateManifestResourceName.cs (2)
192if (File.Exists(Path.Combine(Path.GetDirectoryName(fileName), conventionDependentUpon))) 216string pathToDependent = Path.Combine(Path.GetDirectoryName(fileName), dependentUpon);
Culture.cs (1)
77string baseFolder = Path.GetDirectoryName(name);
FileIO\WriteLinesToFile.cs (1)
99var directoryPath = Path.GetDirectoryName(FileUtilities.NormalizePath(File.ItemSpec));
FileUtilities.cs (2)
716string directory = Path.GetDirectoryName(FixFilePath(fileSpec)); 1495lookInDirectory = Path.GetDirectoryName(lookInDirectory);
GenerateLauncher.cs (1)
101OutputEntryPoint = new TaskItem(Path.Combine(Path.GetDirectoryName(EntryPoint.ItemSpec), results.KeyFile));
GetSDKReferenceFiles.cs (2)
512string directory = Path.GetDirectoryName(reference.AssemblyLocation); 1030group reference by Path.GetDirectoryName(reference);
ManifestUtil\DeployManifest.cs (1)
581manifestPath = Path.Combine(Path.GetDirectoryName(SourcePath), _entryPoint.TargetPath);
ManifestUtil\LauncherBuilder.cs (1)
91EnsureFolderExists(Path.GetDirectoryName(strOutputExe));
ManifestUtil\Manifest.cs (3)
215defaultDir = Path.GetDirectoryName(_sourcePath); 518f.ResolvedPath = Path.Combine(Path.GetDirectoryName(f.ResolvedPath), f.TargetPath); 522f.ResolvedPath = Path.Combine(Path.GetDirectoryName(f.ResolvedPath), AssemblyName);
ManifestUtil\Util.cs (1)
112return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Modifiers.cs (1)
650return Path.GetDirectoryName(path) == null;
Move.cs (1)
234string destinationFolder = Path.GetDirectoryName(destinationFile);
MSBuild.cs (1)
507projectDirectory[i] = Path.GetDirectoryName(projectPath);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
92private static readonly Lazy<string> ThisAssemblyDirectoryLazy = new Lazy<string>(() => Path.GetDirectoryName(typeof(RoslynCodeTaskFactory).GetTypeInfo().Assembly.ManifestModule.FullyQualifiedName)); 555directoriesToAddToAppDomain.Add(Path.GetDirectoryName(fullPath));
SystemState.cs (2)
585string fullPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(stateFile.ToString()), relativePath)); 609instanceLocalOutgoingFileStateCache = instanceLocalFileStateCache.ToDictionary(kvp => FileUtilities.MakeRelative(Path.GetDirectoryName(stateFile), kvp.Key), kvp => kvp.Value);
WriteCodeFragment.cs (1)
116FileUtilities.EnsureDirectoryExists(Path.GetDirectoryName(OutputFile.ItemSpec));
Microsoft.Build.Tasks.UnitTests (17)
AddToWin32Manifest_Tests.cs (1)
21Path.GetDirectoryName(typeof(AddToWin32Manifest_Tests).Assembly.Location) ?? AppContext.BaseDirectory,
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
652string baseDir = Path.GetDirectoryName(file);
Copy_Tests.cs (1)
2984Path.Combine(Path.GetDirectoryName(sourceFile2.Path), ".", Path.GetFileName(sourceFile2.Path))) // sourceFile2.Path with a "." inserted before the file name
CreateCSharpManifestResourceName_Tests.cs (4)
424env.SetCurrentDirectory(Path.GetDirectoryName(resourceFile.Path)); 498env.SetCurrentDirectory(Path.GetDirectoryName(resXFile.Path)); 563env.SetCurrentDirectory(Path.GetDirectoryName(resXFile.Path)); 599env.SetCurrentDirectory(Path.GetDirectoryName(resXFile.Path));
NuGetPropsImportTests.cs (1)
66var nugetPropsRelativePath = Path.Combine(Path.GetDirectoryName(projectRelativePath), NuGetPropsProjectFile);
ProjectExtensionsImportTestBase.cs (2)
150string projectExtensionsDirectory = Path.Combine(ObjectModelHelpers.TempProjectDir, Path.GetDirectoryName(ImportProjectPath)); 173<MSBuildProjectExtensionsPath>{Path.GetDirectoryName(CustomImportProjectPath)}</MSBuildProjectExtensionsPath>
ProjectExtensionsPropsImportTest.cs (1)
17protected override string ImportProjectPath => Path.Combine(Path.GetDirectoryName(_projectRelativePath), "obj", $"{Path.GetFileName(_projectRelativePath)}.custom.props");
ProjectExtensionsTargetsImportTest.cs (1)
17protected override string ImportProjectPath => Path.Combine(Path.GetDirectoryName(_projectRelativePath), "obj", $"{Path.GetFileName(_projectRelativePath)}.custom.targets");
RARPrecomputedCache_Tests.cs (2)
75string dllName = Path.Combine(Path.GetDirectoryName(standardCache.Path), "randomFolder", "dll.dll"); 116string dllName = Path.Combine(Path.GetDirectoryName(precomputedCache.Path), "randomFolder", "dll.dll");
ResolveAssemblyReference_CustomCultureTests.cs (1)
19Path.GetDirectoryName(typeof(AddToWin32Manifest_Tests).Assembly.Location) ?? AppContext.BaseDirectory,
ResolveCodeAnalysisRuleSet_Tests.cs (1)
258using (new TemporaryDirectory(Path.GetDirectoryName(ruleSetFullPath)))
RoslynCodeTaskFactory_Tests.cs (1)
56<Reference Include=""" + Path.Combine(Path.GetDirectoryName(location), "..", "..", "..", "Samples", "Dependency",
Microsoft.Build.UnitTests.Shared (4)
ObjectModelHelpers.cs (4)
906Directory.CreateDirectory(Path.GetDirectoryName(fullFilePath)); 1669var directoryName = Path.GetDirectoryName(fullPath); 1856var pathsSortedByDepth = paths.OrderByDescending(x => Path.GetDirectoryName(Path.GetFullPath(x)).Length); 1865string directory = Path.GetDirectoryName(path);
Microsoft.Build.Utilities.Core (8)
BuildEnvironmentHelper.cs (1)
358string directory = Path.GetDirectoryName(msBuildAssembly);
FileUtilities.cs (2)
716string directory = Path.GetDirectoryName(FixFilePath(fileSpec)); 1495lookInDirectory = Path.GetDirectoryName(lookInDirectory);
FrameworkLocationHelper.cs (2)
804string baseLocation = Path.GetDirectoryName(currentRuntimePath); 1390Path.GetDirectoryName(typeof(object).Module.FullyQualifiedName),
Modifiers.cs (1)
650return Path.GetDirectoryName(path) == null;
ToolTask.cs (1)
527string directory = Path.GetDirectoryName(pathToTool);
TrackedDependencies\TrackedDependencies.cs (1)
39string? directoryName = Path.GetDirectoryName(item.ItemSpec);
Microsoft.Build.Utilities.UnitTests (1)
ToolLocationHelper_Tests.cs (1)
515Path.GetDirectoryName(typeof(object).GetTypeInfo().Module.FullyQualifiedName),
Microsoft.Cci.Extensions (2)
HostEnvironment.cs (2)
395: Path.GetDirectoryName(Path.GetFullPath(referringUnit.Location)); 756files = Directory.EnumerateFiles(Path.GetDirectoryName(resolvedPath), Path.GetFileName(resolvedPath));
Microsoft.CodeAnalysis (15)
AssemblyUtilities.cs (1)
30string? directory = Path.GetDirectoryName(filePath);
CommandLine\AnalyzerConfig.cs (1)
170string directory = Path.GetDirectoryName(pathToFile) ?? pathToFile;
CommandLine\CommandLineParser.cs (1)
291outputDirectory = Path.GetDirectoryName(resolvedPath);
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
81var newFilePath = Path.Combine(Path.GetDirectoryName(_filePath)!, Guid.NewGuid().ToString() + "_" + Path.GetFileName(_filePath));
CommandLine\CommonCompiler.cs (2)
318var directory = Path.GetDirectoryName(normalizedPath) ?? normalizedPath; 1180Directory.CreateDirectory(Path.GetDirectoryName(path)!);
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
85var fullDirectoryPath = Path.GetDirectoryName(resolvedPath) ?? throw new ArgumentException(message: null, paramName: nameof(resolvedPath));
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
309var path = Path.GetDirectoryName(assemblyFilePath);
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (3)
173var satelliteDirectoryName = Path.GetFileName(Path.GetDirectoryName(satelliteFilePath)); 184var originalDirName = Path.GetDirectoryName(analyzerFilePath)!; 227var directory = Path.GetDirectoryName(shadowCopyPath);
FileSystem\FileUtilities.cs (1)
203return Path.GetDirectoryName(resolvedBasePath);
FileSystem\PathUtilities.cs (1)
124/// Unlike <see cref="System.IO.Path.GetDirectoryName(string)"/> it doesn't check for invalid path characters
MetadataReference\AssemblyMetadata.cs (1)
169return new AssemblyMetadata(manifestModule, moduleName => ModuleMetadata.CreateFromFile(Path.Combine(Path.GetDirectoryName(path) ?? "", moduleName)));
RuleSet\RuleSetInclude.cs (1)
120includePath = PathUtilities.CombinePathsUnchecked(Path.GetDirectoryName(parentRulesetPath) ?? "", includePath);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
203return Path.GetDirectoryName(resolvedBasePath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
124/// Unlike <see cref="System.IO.Path.GetDirectoryName(string)"/> it doesn't check for invalid path characters
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
39var containingDirectory = Path.GetDirectoryName(FilePath);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
61var thisAssemblyFolder = Path.GetDirectoryName(thisAssemblyName);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (23)
CommandLineTests.cs (23)
64Path.GetDirectoryName(typeof(CommandLineTests).GetTypeInfo().Assembly.Location), 69var netStandardDllDir = Path.GetDirectoryName(netStandardDllPath); 5907var baseDir = Path.GetDirectoryName(source); 5944var baseDir = Path.GetDirectoryName(source2); 5964var baseDir = Path.GetDirectoryName(source2); 8396var baseDir = Path.GetDirectoryName(source); 8455CleanupAllGeneratedFiles(Path.Combine(Path.GetDirectoryName(Path.GetDirectoryName(source)), Path.GetFileName(source))); 8533var baseDir = Path.GetDirectoryName(source); 8572var baseDir = Path.GetDirectoryName(source); 8596var baseDir = Path.GetDirectoryName(source); 8630var baseDir = Path.GetDirectoryName(source); 8650var baseDir = Path.GetDirectoryName(source); 8675var baseDir = Path.GetDirectoryName(source); 8702var baseDir = Path.GetDirectoryName(source); 8991var exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe"); 9013var exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe"); 9036var xmlPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.xml"); 9060var sourceLinkPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.json"); 9088string exePath = Path.Combine(Path.GetDirectoryName(sourcePath), "test.exe"); 9113string exePath = Path.Combine(Path.GetDirectoryName(sourcePath), "test.exe"); 15443Directory.CreateDirectory(Path.GetDirectoryName(Path.Combine(srcDirectory.Path, additionalFilePath1))); 15444Directory.CreateDirectory(Path.GetDirectoryName(Path.Combine(srcDirectory.Path, additionalFilePath2)));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\InternalsVisibleToAndStrongNameTests.cs (5)
134string keyFileDir = Path.GetDirectoryName(s_keyPairFile); 163string keyFileDir = Path.GetDirectoryName(s_keyPairFile); 223string keyFileDir = Path.GetDirectoryName(s_keyPairFile); 291string keyFileDir = Path.GetDirectoryName(s_keyPairFile); 333string publicKeyFileDir = Path.GetDirectoryName(s_publicKeyFile);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (1)
24private static readonly string s_referenceAssembliesDir = Path.Combine(Path.GetDirectoryName(typeof(CSharpSemanticSearchServiceTests).Assembly.Location!)!, "SemanticSearchRefs");
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
1238string dir = Path.Combine(Path.GetDirectoryName(file.Path), "subdir");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DocumentationComments\DocumentationCommentCompilerTests.cs (2)
8360string dirPath = Path.GetDirectoryName(fullPath); 8401string dirPath = Path.GetDirectoryName(xmlFile.Path);
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Extensions\SolutionExtensions.cs (1)
16var directoryPathToCheck = Path.GetDirectoryName(pathToEditorConfigFile);
Interactive\InteractiveSession.cs (1)
99_hostDirectory = Path.Combine(Path.GetDirectoryName(typeof(InteractiveSession).Assembly.Location)!, "InteractiveHost");
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (1)
RazorAnalyzerAssemblyResolverTests.cs (1)
184Assert.Equal(serviceHubFolder, Path.GetDirectoryName(assembly1.Location));
Microsoft.CodeAnalysis.Features (5)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
75TryOpenFileStream(Path.Combine(Path.GetDirectoryName(AssemblyFilePath)!, PathUtilities.GetFileName(pdbPath)));
Extensions\ExtensionMessageHandlerService.cs (1)
62return Path.GetDirectoryName(assemblyFilePath)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
168var directoryToCreate = Path.GetDirectoryName(fileInfo.TemporaryFilePath)!;
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
58var basePath = Path.GetDirectoryName(dllPath);
SemanticSearch\SemanticSearchUtilities.cs (1)
32private static readonly string s_thisAssemblyDirectory = Path.GetDirectoryName(typeof(SemanticSearchUtilities).Assembly.Location!)!;
Microsoft.CodeAnalysis.InteractiveHost (4)
Interactive\Core\InteractiveHost.Service.cs (2)
529var rspDirectory = Path.GetDirectoryName(initializationFilePath); 733var directories = attemptedFilePaths.Select(path => Path.GetDirectoryName(path)).ToArray();
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
203return Path.GetDirectoryName(resolvedBasePath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
124/// Unlike <see cref="System.IO.Path.GetDirectoryName(string)"/> it doesn't check for invalid path characters
Microsoft.CodeAnalysis.LanguageServer (10)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
155BaseUri = ProtocolConversions.CreateAbsoluteDocumentUri(Path.GetDirectoryName(filePath)!),
HostWorkspace\FileWatching\SimpleFileChangeWatcher.cs (1)
102var directoryPath = Path.GetDirectoryName(filePath)!;
HostWorkspace\LoadedProject.cs (1)
54_projectDirectory = Path.GetDirectoryName(_projectFilePath)!;
HostWorkspace\WorkspaceProject.cs (1)
183fileDirectory ??= Path.GetDirectoryName(_project.FilePath);
LanguageServer\Handler\Restore\RestoreHandler.cs (1)
53var workingDirectory = Path.GetDirectoryName(path);
Program.cs (1)
97var cacheDirectory = Path.Combine(Path.GetDirectoryName(typeof(Program).Assembly.Location)!, "cache");
Services\ExtensionAssemblyManager.cs (3)
93var directory = Path.GetDirectoryName(assemblyFilePath); 141var devKitDependencyDirectory = Path.GetDirectoryName(devKitDependencyPath); 165var directory = Path.GetDirectoryName(assemblyFilePath);
Testing\RunTestsHandler.cs (1)
124var workingDirectory = Path.GetDirectoryName(document.Project.FilePath);
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Extensions\Extensions.cs (2)
43var directoryName = Path.GetDirectoryName(document.FilePath); 55var projectDirectoryName = Path.GetDirectoryName(document.Project.FilePath);
Features\DecompiledSource\AssemblyResolver.cs (1)
157var baseDirectory = Path.GetDirectoryName(mainModule.FileName);
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (3)
RemoteAnalyzerAssemblyLoaderTests.cs (3)
31var loader = Create(Path.GetDirectoryName(remoteAssemblyLocation)!); 53var loader = Create(Path.GetDirectoryName(featuresAssemblyLocation)!); 69var loader = Create(Path.GetDirectoryName(compilerAssemblyLocation)!);
Microsoft.CodeAnalysis.Remote.Workspaces (1)
ExportProviderBuilder.cs (1)
151var directory = Path.GetDirectoryName(compositionCacheFile)!;
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Verifiers\CSharpSourceGeneratorVerifier`1+Test.cs (1)
84var resourceDirectory = Path.Combine(Path.GetDirectoryName(_testFile)!, "Resources", ResourceName);
Verifiers\VisualBasicSourceGeneratorVerifier`1+Test.cs (1)
69var resourceDirectory = Path.Combine(Path.GetDirectoryName(_testFile)!, "Resources", ResourceName);
Microsoft.CodeAnalysis.Scripting (7)
Hosting\AssemblyLoader\CoreAssemblyLoaderImpl.cs (1)
33var assembly = new LoadContext(Loader, Path.GetDirectoryName(path)).LoadFromAssemblyPath(path);
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (4)
385string directory = Path.GetDirectoryName(fullPath); 467originalDirectory = Path.GetDirectoryName(originalPath); 468shadowCopyDirectory = Path.GetDirectoryName(shadowCopyPath); 545string assemblyDirectory = Path.GetDirectoryName(originalAssemblyPath);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (2)
30s_corlibDirectory = Path.GetDirectoryName(corlibAssemblyFile); 33s_gacDirectory = Directory.GetParent(Path.GetDirectoryName(systemAssemblyFile)).Parent.FullName;
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (3)
MetadataShadowCopyProviderTests.cs (3)
231Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.PrimaryModule.FullPath), @"a.xml"), sc.DocumentationFile.FullPath); 237Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.PrimaryModule.FullPath), @"el-GR", "a.xml"), sc.DocumentationFile.FullPath); 243Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.PrimaryModule.FullPath), @"a.xml"), sc.DocumentationFile.FullPath);
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
CSharpScriptTestBase.cs (1)
39var clientDir = Path.GetDirectoryName(RuntimeUtilities.GetAssemblyLocation(typeof(CSharpScriptTestBase)))!;
TestRuntimeMetadataReferenceResolver.cs (2)
30string testDir = Path.GetDirectoryName(GetType().GetTypeInfo().Assembly.ManifestModule.FullyQualifiedName); 37string fxDir = Path.GetDirectoryName(typeof(object).GetTypeInfo().Assembly.ManifestModule.FullyQualifiedName);
Microsoft.CodeAnalysis.Test.Utilities (5)
Assert\ArtifactUploadUtil.cs (1)
104Directory.CreateDirectory(Path.GetDirectoryName(destFilePath)!);
Metadata\IlasmUtilities.cs (2)
44Path.GetDirectoryName(RuntimeUtilities.GetAssemblyLocation(typeof(object))), 49var directory = Path.GetDirectoryName(RuntimeUtilities.GetAssemblyLocation(typeof(RuntimeUtilities)));
Platform\CoreClr\AssemblyLoadContextUtils.cs (1)
27_probingPath = probingPath ?? Path.GetDirectoryName(typeof(SimpleAssemblyLoadContext).Assembly.Location)!;
SharedResourceHelpers.cs (1)
18string directory = System.IO.Path.GetDirectoryName(filename);
Microsoft.CodeAnalysis.UnitTests (5)
AnalyzerAssemblyLoaderTests.cs (2)
458var assemblyDir = Path.GetDirectoryName(originalSatelliteFullPath)!; 460assemblyDir = Path.GetDirectoryName(assemblyDir)!;
FileSystem\PathUtilitiesTests.cs (1)
22var dotnetName = Path.GetDirectoryName(fullPath);
ShadowCopyAnalyzerPathResolverTests.cs (2)
84Assert.Equal(Path.GetDirectoryName(shadow1Path), Path.GetDirectoryName(shadow2Path));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (9)
CommandLineTests.vb (9)
40Path.GetDirectoryName(GetType(CommandLineTests).Assembly.Location), 1013Dim baseDir = Path.GetDirectoryName(source) 5377AssertReferencePathsEqual(parsedArgs.ReferencePaths, Nothing, Path.GetDirectoryName(file.ToString()), "c:\lib2") 7165Dim corlibDir = Path.GetDirectoryName(corlibLocation) 7231Dim corlibDir = Path.GetDirectoryName(corlibLocation) 9581Dim exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe") 9600Dim exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe") 9620Dim xmlPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.xml") 9641Dim sourceLinkPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.json")
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
Attributes\InternalsVisibleToAndStrongNameTests.vb (4)
90Dim keyFileDir = Path.GetDirectoryName(s_keyPairFile) 120Dim keyFileDir = Path.GetDirectoryName(s_keyPairFile) 188Dim keyFileDir = Path.GetDirectoryName(s_keyPairFile) 245Dim publicKeyFileDir = Path.GetDirectoryName(s_publicKeyFile)
Emit\CompilationEmitTests.vb (1)
3760TestOptions.ReleaseDll.WithXmlReferenceResolver(New XmlFileResolver(Path.GetDirectoryName(filePath))))
Microsoft.CodeAnalysis.Workspaces (16)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
85var fullDirectoryPath = Path.GetDirectoryName(resolvedPath) ?? throw new ArgumentException(message: null, paramName: nameof(resolvedPath));
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
309var path = Path.GetDirectoryName(assemblyFilePath);
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (3)
173var satelliteDirectoryName = Path.GetFileName(Path.GetDirectoryName(satelliteFilePath)); 184var originalDirName = Path.GetDirectoryName(analyzerFilePath)!; 227var directory = Path.GetDirectoryName(shadowCopyPath);
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
203return Path.GetDirectoryName(resolvedBasePath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
124/// Unlike <see cref="System.IO.Path.GetDirectoryName(string)"/> it doesn't check for invalid path characters
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
39var containingDirectory = Path.GetDirectoryName(FilePath);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
61var thisAssemblyFolder = Path.GetDirectoryName(thisAssemblyName);
Storage\SQLite\v2\SQLitePersistentStorage.cs (2)
148var directoryName = Path.GetDirectoryName(databaseFilePath); 158var directory = Path.GetDirectoryName(databaseFilePath);
Workspace\CommandLineProject.cs (2)
158var folderRoot = isWithinProject ? Path.GetDirectoryName(relativePath) : ""; 193var directory = Path.GetDirectoryName(path);
Workspace\Host\PersistentStorage\AbstractPersistentStorage.cs (1)
21public string DatabaseDirectory => Path.GetDirectoryName(DatabaseFile) ?? throw ExceptionUtilities.UnexpectedValue(DatabaseFile);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
220var rootPath = Path.GetDirectoryName(filePath);
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
164_commandLineArgumentsForCommandLine = _commandLineParserService.Parse(arguments, Path.GetDirectoryName(_project.FilePath), isInteractive: false, sdkDirectory: null);
Microsoft.CodeAnalysis.Workspaces.MSBuild (10)
MSBuild\BuildHostProcessManager.cs (2)
190var buildHostPath = Path.Combine(Path.GetDirectoryName(typeof(BuildHostProcessManager).Assembly.Location)!, "BuildHost-netcore", "Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll"); 225var netFrameworkBuildHost = Path.Combine(Path.GetDirectoryName(typeof(BuildHostProcessManager).Assembly.Location)!, "BuildHost-net472", "Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.exe");
MSBuild\MSBuildProjectLoader.cs (1)
226baseDirectory: Path.GetDirectoryName(absoluteSolutionPath)!,
MSBuild\MSBuildProjectLoader.SolutionFilterReader.cs (2)
31if (solutionPath is null || Path.GetDirectoryName(filterFilename) is not string baseDirectory) 53baseDirectory = Path.GetDirectoryName(solutionFilename)!;
MSBuild\MSBuildProjectLoader.Worker.cs (1)
316var projectDirectory = Path.GetDirectoryName(projectPath);
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
196var projectDirectory = Path.GetDirectoryName(projectFileInfo.FilePath);
MSBuild\MSBuildWorkspace.cs (2)
493var dir = Path.GetDirectoryName(fullPath); 560s_frameworkRoot = Path.GetDirectoryName(runtimeDir); // back out one directory level to be root path of all framework versions
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
114var monoDirPath = Path.GetDirectoryName(monoRuntimePath)!;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
114var monoDirPath = Path.GetDirectoryName(monoRuntimePath)!;
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
203return Path.GetDirectoryName(resolvedBasePath);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
124/// Unlike <see cref="System.IO.Path.GetDirectoryName(string)"/> it doesn't check for invalid path characters
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
NetCoreTests.cs (2)
78var projectDir = Path.GetDirectoryName(projectFilePath); 109var projectDir = Path.GetDirectoryName(projectFilePath);
VisualStudioMSBuildWorkspaceTests.cs (5)
815var expectedOutputPath = Path.GetDirectoryName(project.FilePath); 816Assert.Equal(expectedOutputPath, Path.GetDirectoryName(project.OutputFilePath)); 833var expectedOutputPath = Path.Combine(Path.GetDirectoryName(project.FilePath), @"bin"); 834Assert.Equal(expectedOutputPath, Path.GetDirectoryName(Path.GetFullPath(project.OutputFilePath))); 3116var projectDirectory = Path.GetDirectoryName(projectFilePath);
WorkspaceTestBase.cs (1)
44var subdirectory = Path.GetDirectoryName(filePath);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\AbstractTestHostProject.cs (1)
25outputFilePath = Path.GetDirectoryName(projectFilePath);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
CommandLineProject\CommandLineProjectTests.cs (2)
147var assemblyBaseDir = Path.GetDirectoryName(pathToAssembly); 162var assemblyBaseDir = Path.GetDirectoryName(pathToAssembly);
SolutionTests\SolutionTests.cs (1)
46private static readonly string s_projectDir = Path.GetDirectoryName(typeof(SolutionTests).Assembly.Location)!;
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
1338Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "/";
Microsoft.DotNet.Arcade.Sdk (3)
src\DownloadFile.cs (1)
72Directory.CreateDirectory(Path.GetDirectoryName(DestinationPath));
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
37Directory.CreateDirectory(Path.GetDirectoryName(OutputPath));
src\SaveItems.cs (1)
45string path = Path.GetDirectoryName(File);
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Utilities\TestApp.cs (1)
113Directory.CreateDirectory(Path.GetDirectoryName(destFileName));
Microsoft.DotNet.AsmDiff (4)
AssemblySet.cs (2)
81: Path.GetDirectoryName(firstLocation); 116: Path.GetDirectoryName(firstPath);
DiffCSharpWriter.cs (1)
379string appDirectory = Path.GetDirectoryName(entryAssembly.Location);
MarkdownDiffExporter.cs (1)
217string directory = Path.GetDirectoryName(_path);
Microsoft.DotNet.Build.Manifest.Tests (1)
TestInputs\TestInputs.cs (1)
13Path.GetDirectoryName(typeof(TestInputs).Assembly.Location),
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
src\Microsoft.DotNet.Build.Manifest.Tests\TestInputs\TestInputs.cs (1)
13Path.GetDirectoryName(typeof(TestInputs).Assembly.Location),
Microsoft.DotNet.Build.Tasks.Installers (1)
src\GenerateJsonObjectString.cs (1)
98Directory.CreateDirectory(Path.GetDirectoryName(TargetFile));
Microsoft.DotNet.Build.Tasks.Packaging (13)
GenerateNuSpec.cs (1)
119var directory = Path.GetDirectoryName(OutputFileName);
GenerateRuntimeDependencies.cs (1)
138string destRuntimeFileDir = Path.GetDirectoryName(destRuntimeFilePath);
HarvestPackage.cs (3)
429var targetPath = Path.GetDirectoryName(livePackagePath).Replace('\\', '/'); 544probePath = NormalizePath(Path.GetDirectoryName(probePath))) 561probePath = NormalizePath(Path.GetDirectoryName(probePath)))
NuGetPack.cs (4)
198string baseDirectoryPath = (string.IsNullOrEmpty(BaseDirectory)) ? Path.GetDirectoryName(nuspecPath) : BaseDirectory; 259string baseDirectoryPath = (string.IsNullOrEmpty(BaseDirectory)) ? Path.GetDirectoryName(nuspecPath) : BaseDirectory; 296var directory = Path.GetDirectoryName(nupkgPath); 355string packedPackageSourcePath = Path.Combine(Path.GetDirectoryName(fileName), string.Join(".", _packageNamePrefix, Path.GetFileName(fileName)));
PackageIndex.cs (1)
78string directory = Path.GetDirectoryName(path);
PackageReport.cs (1)
34string directory = Path.GetDirectoryName(path);
UpdatePackageIndex.cs (2)
121.Select(nuspec => Path.GetDirectoryName(nuspec)); 211var id = Path.GetFileName(Path.GetDirectoryName(path));
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
HarvestPackageTests.cs (1)
66candidate = Path.GetDirectoryName(candidate))
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
src\Common\Internal\AssemblyResolver.cs (2)
46probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName); 58probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName);
Microsoft.DotNet.Build.Tasks.Templating (1)
GenerateFileFromTemplate.cs (1)
71Directory.CreateDirectory(Path.GetDirectoryName(ResolvedOutputPath));
Microsoft.DotNet.Build.Tasks.Templating.Tests (1)
GenerateFileFromTemplateTests.cs (1)
91Path.GetDirectoryName(typeof(GenerateFileFromTemplateTests).Assembly.Location),
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\IbcEntry.cs (1)
80select new IbcEntry(fileName, filePath, relativeDirectoryPath: Path.GetDirectoryName(fileName), DefaultNgenApplication);
Microsoft.DotNet.Build.Tasks.Workloads.Tests (19)
CreateVisualStudioWorkloadSetTests.cs (2)
71string msiSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(workloadSetSwixItem.ItemSpec), "msi.swr")); 82string packageGroupSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(workloadSetPackageGroupSwixItem.ItemSpec), "packageGroup.swr"));
CreateVisualStudioWorkloadTests.cs (4)
95Path.Combine(Path.GetDirectoryName( 100Path.Combine(Path.GetDirectoryName( 144string packMsiSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(pythonPackSwixItem.ItemSpec), "msi.swr")); 230Path.Combine(Path.GetDirectoryName(
SwixComponentTests.cs (11)
31string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 35string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 60string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 65string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 89string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 94string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 115string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 129string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 158string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 174string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 189string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr"));
SwixPackageGroupTests.cs (1)
37string packageGroupSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(packageGroupItem.ItemSpec), "packageGroup.swr"));
SwixPackageTests.cs (1)
62string msiSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "msi.swr"));
Microsoft.DotNet.GenFacades (2)
src\Common\Internal\AssemblyResolver.cs (2)
46probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName); 58probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName);
Microsoft.DotNet.Helix.Sdk (1)
DownloadFromResultsContainer.cs (1)
86Directory.CreateDirectory(Path.Combine(destinationDir.FullName, Path.GetDirectoryName(file)));
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
293_ = Directory.CreateDirectory(Path.GetDirectoryName(entryPath)!);
Microsoft.DotNet.MacOsPkg.Core (1)
Utilities.cs (1)
37string? parent = Path.GetDirectoryName(path);
Microsoft.DotNet.MacOsPkg.Tests (2)
UnpackPackTests.cs (2)
24Path.GetDirectoryName(typeof(UnpackPackTests).Assembly.Location)!, 236Path.GetDirectoryName(typeof(UnpackPackTests).Assembly.Location)!,
Microsoft.DotNet.RemoteExecutor (2)
RemoteExecutor.cs (2)
67string runtimePath = IOPath.GetDirectoryName(typeof(object).Assembly.Location); 91static string GetDirectoryName(string path) => string.IsNullOrEmpty(path) ? string.Empty : IOPath.GetDirectoryName(path);
Microsoft.DotNet.SharedFramework.Sdk (2)
src\CreateFrameworkListFile.cs (2)
171new XAttribute("Culture", Path.GetFileName(Path.GetDirectoryName(path)))); 260Directory.CreateDirectory(Path.GetDirectoryName(TargetFile));
Microsoft.DotNet.SignCheckLibrary (7)
Logging\FileLogger.cs (3)
43Directory.CreateDirectory(Path.GetDirectoryName(Path.GetFullPath(messageFile))); 52Directory.CreateDirectory(Path.GetDirectoryName(Path.GetFullPath(errorFile))); 62Directory.CreateDirectory(Path.GetDirectoryName(Path.GetFullPath(resultsFile)));
Verification\ArchiveVerifier.cs (3)
110CreateDirectory(Path.GetDirectoryName(aliasFullName)); 132string parent = Path.GetDirectoryName(svr.FullPath) ?? SignCheckResources.NA; 166string directoryName = Path.GetDirectoryName(archiveEntry.RelativePath);
Verification\LZMAUtils.cs (1)
19string destinationDir = Path.GetDirectoryName(destinationFile);
Microsoft.DotNet.SignCheckTask (3)
src\SignCheck.cs (2)
212string fileSearchPath = Path.GetDirectoryName(inputFile); 421Directory.CreateDirectory(Path.GetDirectoryName(Path.GetFullPath(Options.ExclusionsOutput)));
src\Utils.cs (1)
17var directoryPath = Path.GetDirectoryName(path);
Microsoft.DotNet.SignTool (7)
src\Configuration.cs (1)
783Directory.CreateDirectory(Path.GetDirectoryName(tempPath));
src\SignTool.cs (3)
113Arguments = $"-V -xk \"{item.Value}\" \"{Path.GetDirectoryName(item.Key)}\"", 133ZipFile.ExtractToDirectory(item.Value, Path.GetDirectoryName(item.Key), true); 228var zipFilePath = Path.Combine(Path.GetDirectoryName(fullPath), Path.GetFileName(fullPath) + ".zip");
src\SignToolTask.cs (1)
374var directoryParts = Path.GetFullPath(Path.GetDirectoryName(itemToSign.ItemSpec)).Split(separators);
src\ZipData.cs (2)
632Directory.CreateDirectory(Path.GetDirectoryName(outputPath)!); 761Directory.CreateDirectory(Path.GetDirectoryName(outputPath)!);
Microsoft.DotNet.SignTool.Tests (5)
SignToolTests.cs (5)
273return Path.Combine(Path.GetDirectoryName(typeof(SignToolTests).Assembly.Location), "tools", "wix"); 276private static string s_snPath = Path.Combine(Path.GetDirectoryName(typeof(SignToolTests).Assembly.Location), "tools", "sn", "sn.exe"); 277private static string s_tarToolPath = Path.Combine(Path.GetDirectoryName(typeof(SignToolTests).Assembly.Location), "tools", "tar", "Microsoft.Dotnet.Tar.dll"); 278private static string s_pkgToolPath = Path.Combine(Path.GetDirectoryName(typeof(SignToolTests).Assembly.Location), "tools", "pkg", "Microsoft.Dotnet.MacOsPkg.dll"); 282var srcPath = Path.Combine(Path.GetDirectoryName(typeof(SignToolTests).Assembly.Location), "Resources", name);
Microsoft.DotNet.SourceBuild.Tasks (3)
src\UsageReport\WritePackageUsageData.cs (2)
150Directory.CreateDirectory(Path.GetDirectoryName(ProjectAssetsJsonArchiveFile)); 254Directory.CreateDirectory(Path.GetDirectoryName(DataFile));
src\WriteBuildOutputProps.cs (1)
75Directory.CreateDirectory(Path.GetDirectoryName(OutputPath));
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Languages\Language.cs (1)
19public static string BasePath { get; set; } = Path.GetDirectoryName(typeof(Templates).Assembly.Location);
Microsoft.DotNet.XliffTasks (10)
Model\Document.cs (1)
70string tempPath = Path.Combine(Path.GetDirectoryName(path), Path.GetRandomFileName());
Model\ResxDocument.cs (1)
67string absolutePath = Path.Combine(Path.GetDirectoryName(sourceFullPath), resourceRelativePath);
Model\VsctDocument.cs (1)
87string absolutePath = Path.Combine(Path.GetDirectoryName(sourceFullPath), resourceRelativePath);
Tasks\GatherTranslatedSource.cs (2)
78string linkDirectory = Path.GetDirectoryName(link); 111string sourceDirectory = Path.GetDirectoryName(xlf.GetMetadataOrThrow(MetadataKey.XlfSource));
Tasks\SortXlf.cs (1)
45Directory.CreateDirectory(Path.GetDirectoryName(xlfPath));
Tasks\TransformTemplates.cs (1)
65string templateDirectory = Path.GetDirectoryName(templatePath);
Tasks\TranslateSource.cs (1)
39Directory.CreateDirectory(Path.GetDirectoryName(translatedFullPath));
Tasks\UpdateXlf.cs (1)
71Directory.CreateDirectory(Path.GetDirectoryName(xlfPath));
Tasks\XlfTask.cs (1)
92string directory = Path.GetDirectoryName(sourcePath);
Microsoft.DotNet.XUnitAssert.Tests (3)
EquivalenceAssertsTests.cs (3)
1531 var assemblyPath = Path.GetDirectoryName(typeof(SpecialCases).Assembly.Location); 1543 var assemblyPath = Path.GetDirectoryName(typeof(SpecialCases).Assembly.Location); 1545 var assemblyParentPath = Path.GetDirectoryName(assemblyPath);
Microsoft.Extensions.AI.Evaluation.Console (1)
Commands\ReportCommand.cs (1)
80string? outputPath = Path.GetDirectoryName(outputFilePath);
Microsoft.Extensions.AI.Templates.Tests (1)
ProjectRootHelper.cs (1)
28if (Path.GetDirectoryName(callerFilePath) is not { Length: > 0 } testProjectRoot)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
TargetTest.cs (1)
19private static string _assemblyLocation = Path.GetDirectoryName(_assembly.Location);
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
GetDocumentTests.cs (1)
20private readonly string _toolsDirectory = Path.GetDirectoryName(typeof(Program).Assembly.Location);
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationSource.cs (2)
79string? directory = System.IO.Path.GetDirectoryName(Path); 84directory = System.IO.Path.GetDirectoryName(directory);
Microsoft.Extensions.Configuration.UserSecrets (1)
UserSecretsConfigurationExtensions.cs (1)
182string? directoryPath = Path.GetDirectoryName(secretPath);
Microsoft.Extensions.DependencyModel (1)
Resolution\AppBaseCompilationAssemblyResolver.cs (1)
84string? sharedDirectory = Path.GetDirectoryName(sharedPath);
Microsoft.Extensions.FileProviders.Embedded (1)
EmbeddedFileProvider.cs (1)
100var everettId = MakeValidEverettIdentifier(Path.GetDirectoryName(subpath));
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
79new InMemoryDirectoryInfo(Path.GetDirectoryName(FullName)!, _files, true);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
23var assemblyFileLocation = Path.GetDirectoryName(typeof(NoRemoteCallHandler).Assembly.Location)!;
NoRemoteCallNotSeekableHandler.cs (1)
26var assemblyFileLocation = Path.GetDirectoryName(typeof(NoRemoteCallHandler).Assembly.Location)!;
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\NoRemoteCallHandler.cs (1)
19var assemblyFileLocation = Path.GetDirectoryName(typeof(NoRemoteCallHandler).Assembly.Location)!;
Microsoft.Extensions.ML (1)
ModelLoaders\FileModelLoader.cs (1)
45var directory = Path.GetDirectoryName(filePath);
Microsoft.Extensions.SecretManager.Tools.Tests (6)
SecretManagerTests.cs (4)
218Directory.CreateDirectory(Path.GetDirectoryName(secretsFile)); 231Directory.CreateDirectory(Path.GetDirectoryName(secretsFile)); 233var secretManager = new Program(_console, Path.GetDirectoryName(projectPath)); 247Directory.CreateDirectory(Path.GetDirectoryName(secretsFile));
UserSecretsTestFixture.cs (2)
19_disposables.Push(() => TryDelete(Path.GetDirectoryName(PathHelper.GetSecretsPathFromSecretsId(TestSecretsId)))); 72var secretsDir = Path.GetDirectoryName(PathHelper.GetSecretsPathFromSecretsId(id));
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
36_directory = Path.GetDirectoryName(filePath);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
59var runtimeDir = Path.GetDirectoryName(corelib)!;
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
59var runtimeDir = Path.GetDirectoryName(corelib)!;
Microsoft.Gen.Logging.Unit.Tests (2)
CompilationHelper.cs (1)
26string runtimeDir = Path.GetDirectoryName(corelib)!;
test\Generators\Shared\RoslynTestUtils.cs (1)
59var runtimeDir = Path.GetDirectoryName(corelib)!;
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
36_directory = Path.GetDirectoryName(filePath);
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
59var runtimeDir = Path.GetDirectoryName(corelib)!;
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
59var runtimeDir = Path.GetDirectoryName(corelib)!;
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
59var runtimeDir = Path.GetDirectoryName(corelib)!;
Microsoft.Maui.Controls.Build.Tasks (2)
DebugXamlCTask.cs (1)
24 var paths = ReferencePath.Select(p => IOPath.GetDirectoryName(p.Replace("//", "/"))).Distinct();
XamlCTask.cs (1)
182 var paths = ReferencePath.Select(p => IOPath.GetDirectoryName(p.Replace("//", "/"))).Distinct();
Microsoft.Maui.Controls.SourceGen (4)
CodeBehindGenerator.cs (4)
286 var hintName = $"{(string.IsNullOrEmpty(Path.GetDirectoryName(projItem.TargetPath)) ? "" : Path.GetDirectoryName(projItem.TargetPath) + Path.DirectorySeparatorChar)}{Path.GetFileNameWithoutExtension(projItem.TargetPath)}.{projItem.Kind.ToLowerInvariant()}.sg.cs".Replace(Path.DirectorySeparatorChar, '_'); 633 var hintName = $"{(string.IsNullOrEmpty(Path.GetDirectoryName(projItem.TargetPath)) ? "" : Path.GetDirectoryName(projItem.TargetPath) + Path.DirectorySeparatorChar)}{Path.GetFileNameWithoutExtension(projItem.TargetPath)}.{projItem.Kind.ToLowerInvariant()}.sg.cs".Replace(Path.DirectorySeparatorChar, '_');
Microsoft.Maui.Resizetizer (1)
SkiaSharpAppIconTools.cs (1)
72 var dir = Path.GetDirectoryName(destination);
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
196var projectPaths = projects.Select((name) => $"\"{Path.Combine(Path.GetDirectoryName(solutionPath), name).ToString()}\"");
Microsoft.ML.Core (6)
Data\Repository.cs (2)
250string parent = Path.GetDirectoryName(entityPath); 530Directory.CreateDirectory(Path.GetDirectoryName(pathTemp));
Utilities\PathUtils.cs (2)
29string directory = Path.GetDirectoryName(path); 90var assemblyDir = Path.GetDirectoryName(assemblyForBasePath.Assembly.Location);
Utilities\ResourceManagerUtils.cs (1)
263string tempPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(path), "temp-resource-" + guid.ToString()));
Utilities\Stream.cs (1)
851dir = Path.GetDirectoryName(Path.GetFullPath(file));
Microsoft.ML.CpuMath.UnitTests (1)
UnitTests.cs (1)
997options.StartInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Microsoft.ML.Data (2)
Commands\CrossValidationCommand.cs (1)
581return Path.Combine(Path.GetDirectoryName(outputModelFile),
Utilities\StreamUtils.cs (1)
126var path = Path.GetDirectoryName(currentPattern);
Microsoft.ML.Maml (1)
MAML.cs (1)
57string currentDirectory = Path.GetDirectoryName(typeof(Maml).Module.FullyQualifiedName);
Microsoft.ML.OnnxTransformerTest (5)
DnnImageFeaturizerTest.cs (2)
102var imageFolder = Path.GetDirectoryName(dataFile); 212var imageFolder = Path.GetDirectoryName(dataFile);
OnnxTransformTests.cs (3)
247var imageFolder = Path.GetDirectoryName(dataFile); 298var imageFolder = Path.GetDirectoryName(dataFile); 1127var imageFolder = Path.GetDirectoryName(dataFile);
Microsoft.ML.PerformanceTests (3)
Numeric\Ranking.cs (1)
88_modelPathMslr = Path.Combine(Path.GetDirectoryName(typeof(RankingTest).Assembly.Location), "FastTreeRankingModel.zip");
Text\MultiClassClassification.cs (2)
105_modelPathWiki = Path.Combine(Path.GetDirectoryName(typeof(MulticlassClassificationTest).Assembly.Location), @"WikiModel.zip"); 123string modelpath = Path.Combine(Path.GetDirectoryName(typeof(MulticlassClassificationTest).Assembly.Location), @"WikiModel.fold000.zip");
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
1005string currentDirectory = Path.GetDirectoryName(typeof(ResultProcessor).Module.FullyQualifiedName);
Microsoft.ML.Samples (5)
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (1)
43var imagesFolder = Path.GetDirectoryName(imagesDataFile);
Dynamic\Transforms\ImageAnalytics\DnnFeaturizeImage.cs (1)
42var imagesFolder = Path.GetDirectoryName(imagesDataFile);
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (1)
45var imagesFolder = Path.GetDirectoryName(imagesDataFile);
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (1)
42var imagesFolder = Path.GetDirectoryName(imagesDataFile);
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (1)
42var imagesFolder = Path.GetDirectoryName(imagesDataFile);
Microsoft.ML.Sweeper (2)
ConfigRunner.cs (1)
107string currentDirectory = Path.GetDirectoryName(typeof(ExeConfigRunnerBase).Module.FullyQualifiedName);
SweepCommand.cs (1)
49public static readonly string LocalExePath = Path.GetDirectoryName(typeof(SweepCommand).Module.FullyQualifiedName);
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (1)
167string fullFileDir = Path.GetDirectoryName(fullFilePath);
TensorflowUtils.cs (1)
219var directory = Path.GetDirectoryName(errorResult.FileName);
Microsoft.ML.TensorFlow.Tests (13)
TensorFlowEstimatorTests.cs (3)
154var imageFolder = Path.GetDirectoryName(dataFile); 196var imageFolder = Path.GetDirectoryName(dataFile); 247var imageFolder = Path.GetDirectoryName(dataFile);
TensorflowTests.cs (10)
137var imageFolder = Path.GetDirectoryName(dataFile); 504var imageFolder = Path.GetDirectoryName(dataFile); 540var imageFolder = Path.GetDirectoryName(dataFile); 1010var imageFolder = Path.GetDirectoryName(dataFile); 1069var imageFolder = Path.GetDirectoryName(dataFile); 1112var imageFolder = Path.GetDirectoryName(dataFile); 1147var imageFolder = Path.GetDirectoryName(dataFile); 1222var imageFolder = Path.GetDirectoryName(dataFile); 1993var directory = Path.GetDirectoryName(errorResult.FileName); 2051string imageFolder = Path.GetDirectoryName(dataFile);
Microsoft.ML.Tests (16)
ImagesTests.cs (16)
33var imageFolder = Path.GetDirectoryName(dataFile); 64var imageFolder = Path.GetDirectoryName(dataFile); 108var correctImageFolder = Path.GetDirectoryName(dataFile); 140var imageFolder = Path.GetDirectoryName(dataFile); 177var imageFolder = Path.GetDirectoryName(dataFile); 336var imageFolder = Path.GetDirectoryName(dataFile); 411var imageFolder = Path.GetDirectoryName(dataFile); 487var imageFolder = Path.GetDirectoryName(dataFile); 562var imageFolder = Path.GetDirectoryName(dataFile); 637var imageFolder = Path.GetDirectoryName(dataFile); 712var imageFolder = Path.GetDirectoryName(dataFile); 788var imageFolder = Path.GetDirectoryName(dataFile); 863var imageFolder = Path.GetDirectoryName(dataFile); 939var imageFolder = Path.GetDirectoryName(dataFile); 1011var imageFolder = Path.GetDirectoryName(dataFile); 1179var imageFolder = Path.GetDirectoryName(dataFile);
Microsoft.ML.TorchSharp (3)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
276var directory = Path.GetDirectoryName(errorResult.FileName);
Roberta\QATrainer.cs (1)
260var directory = Path.GetDirectoryName(errorResult.FileName);
TorchSharpBaseTrainer.cs (1)
186var directory = Path.GetDirectoryName(errorResult.FileName);
Microsoft.ML.TorchSharp.Tests (1)
ObjectDetectionTests.cs (1)
31var imageFolder = Path.GetDirectoryName(dataFile);
Microsoft.ML.Transforms (1)
Text\WordEmbeddingsExtractor.cs (1)
639var directory = Path.GetDirectoryName(errorResult.FileName);
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
132string fullFileDir = Path.GetDirectoryName(fullFilePath);
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\IOUtils.vb (1)
34DirName = Path.GetDirectoryName(PathName)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
246Return IO.Path.GetDirectoryName(path.TrimEnd(
Microsoft\VisualBasic\FileSystem.vb (1)
386DirName = Path.GetDirectoryName(PathName)
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
137basePath = Path.GetDirectoryName(Application.ExecutablePath) 594Debug.Assert(Not String.IsNullOrWhiteSpace(Path.GetDirectoryName(LogFileName)), "The log directory shouldn't be empty.") 595Dim fileName As String = Path.GetDirectoryName(LogFileName)
Microsoft.VisualBasic.Forms.Tests (3)
System\Windows\Forms\FileLogTraceListenerTests.vb (2)
218fullLogFileName.Should.StartWith(Path.GetDirectoryName(Application.ExecutablePath)) 225If DirectoryIsAccessible(Path.GetDirectoryName(Application.ExecutablePath)) Then
System\Windows\Forms\VbFileCleanupTestBaseTests.vb (1)
50testDirectory.Should.Be(Path.GetDirectoryName(testFile1))
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\ApplicationServices\AssemblyInfoTests.cs (1)
24assemblyInfo.DirectoryPath.Should().Be(Path.GetDirectoryName(assembly.Location));
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (1)
476Assert.Equal(_fileSystem.GetParentPath(TestDirectory), Path.GetDirectoryName(TestDirectory));
Microsoft.VisualStudio.LanguageServices (8)
Implementation\AbstractEditorFactory.cs (2)
314projectToAddTo = AddEditorConfigFiles(projectToAddTo, Path.GetDirectoryName(filePath)); 385projectFolder = Path.GetDirectoryName(projectFolder);
ProjectSystem\Legacy\AbstractLegacyProject.cs (3)
87_projectDirectory = Path.GetDirectoryName(projectFilePath); 211var linkFolderPath = Path.GetDirectoryName(linkMetadata); 273outputDirectory = FileUtilities.ResolveRelativePath(outputDirectory, Path.GetDirectoryName(ProjectSystemProject.FilePath));
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
351assemblyDir ??= Path.GetDirectoryName(fullPath);
ProjectSystem\RuleSets\RuleSetEventHandler.cs (1)
226var projectDirectoryFullPath = Path.GetDirectoryName(project.FullName);
Workspace\SourceGeneratedFileManager.cs (1)
126Directory.CreateDirectory(Path.GetDirectoryName(temporaryFilePath));
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
190var directory = Path.GetDirectoryName(_projectSystemProject.FilePath);
ProjectSystemShim\TempPECompilerService.cs (1)
34var baseDirectory = Path.GetDirectoryName(pszOutputFileName);
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspace.cs (2)
265return AddDocumentToProject(filePath, language, Path.GetFileName(Path.GetDirectoryName(remoteWorkspaceRoot))); 269return AddDocumentToProject(filePath, language, Path.GetFileName(Path.GetDirectoryName(remoteExternalRoot)));
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
ProjectSystemShim\Framework\TestEnvironment.vb (1)
146Directory.Delete(Path.GetDirectoryName(filePath))
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
ReferenceManager\VisualStudioMetadataReferenceManagerTests.vb (1)
19Dim assemblyDir = Path.GetDirectoryName(GetType(Object).Assembly.Location)
MSBuild (10)
BuildEnvironmentHelper.cs (1)
358string directory = Path.GetDirectoryName(msBuildAssembly);
FileUtilities.cs (2)
716string directory = Path.GetDirectoryName(FixFilePath(fileSpec)); 1495lookInDirectory = Path.GetDirectoryName(lookInDirectory);
Modifiers.cs (1)
650return Path.GetDirectoryName(path) == null;
TypeLoader.cs (3)
54string msbuildDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); 171string baseDir = Path.GetDirectoryName(assemblyLoadInfo.AssemblyFile); 189string[] localAssemblies = Directory.GetFiles(Path.GetDirectoryName(path), "*.dll");
XMake.cs (3)
159s_exePath = Path.GetDirectoryName(FileUtilities.ExecutingAssemblyPath); 2251var responseFileDirectory = FileUtilities.EnsureTrailingSlash(Path.GetDirectoryName(responseFile)); 3060projectDirectory = Path.GetDirectoryName(Path.GetFullPath(projectFile));
MSBuildTaskHost (6)
BuildEnvironmentHelper.cs (1)
358string directory = Path.GetDirectoryName(msBuildAssembly);
FileUtilities.cs (2)
716string directory = Path.GetDirectoryName(FixFilePath(fileSpec)); 1495lookInDirectory = Path.GetDirectoryName(lookInDirectory);
Modifiers.cs (1)
650return Path.GetDirectoryName(path) == null;
NativeMethods.cs (2)
890Path.GetDirectoryName(baseTypeLocation) 910dir = Path.GetDirectoryName(dir);
PrepareTests (10)
MinimizeUtil.cs (6)
34var outputDirectory = Path.GetDirectoryName(outputPath)!; 75var currentDirName = Path.GetDirectoryName(sourceFilePath)!; 190if (Path.GetDirectoryName(destFileName) is { Length: not 0 } directory) 236if (Path.GetDirectoryName(destFilePath) is { Length: not 0 } directory) 261while (Path.GetFileName(Path.GetDirectoryName(groupDirectory)) is not (null or "Debug" or "Release")) 262groupDirectory = Path.GetDirectoryName(groupDirectory);
TestDiscovery.cs (4)
61var dir = Path.GetDirectoryName(typeof(TestDiscovery).Assembly.Location); 63var configuration = Path.GetFileName(Path.GetDirectoryName(dir))!; 89var pathToOutput = Path.Combine(Path.GetDirectoryName(pathToAssembly)!, "testlist.json"); 119return Path.GetFileName(Path.GetDirectoryName(path)) != "net472";
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1599string pathOfRelativeSourceFilePath = System.IO.Path.GetDirectoryName(SourceFileInfo.RelativeSourceFilePath);
PresentationFramework (2)
MS\Internal\AppModel\ContentFilePart.cs (1)
68_fullPath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(location), filePath);
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
100private static readonly string _currentModuleDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
PresentationUI (2)
MS\Internal\Documents\Application\DocumentStream.cs (1)
819Path.GetDirectoryName(path),
MS\Internal\Documents\RightsManagementProvider.cs (1)
1356string applicationManifestFileLocation = Path.Combine( Path.GetDirectoryName(fileName),
Replay (1)
Replay.cs (1)
261Directory.CreateDirectory(Path.GetDirectoryName(filePath)!);
Roslyn.Compilers.Extension (2)
CompilerPackage.cs (2)
37var packagePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); 118var parentDirectory = new DirectoryInfo(Path.GetDirectoryName(fileAndContents.Key));
Roslyn.Test.Performance.Utilities (1)
VsPerfTest.cs (1)
50var dir = Path.Combine(Path.GetDirectoryName(MyWorkingDirectory), "csharp");
Roslyn.VisualStudio.Next.UnitTests (12)
Options\VisualStudioOptionStorageTests.cs (11)
22return OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)) 31return OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)) 41return OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)) 51return OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)) 74var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 101var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 149var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 166var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 178var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 200var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 280var allOptionGroups = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location))
Services\SolutionServiceTests.cs (1)
247var dir = Path.GetDirectoryName(typeof(SolutionServiceTests).Assembly.Location);
RunTests (10)
AssemblyScheduler.cs (1)
250var assemblyDirectory = Path.GetDirectoryName(assemblyFilePath);
HelixTestRunner.cs (5)
155var duplicateDir = Path.Combine(Path.GetDirectoryName(artifactsDir)!, ".duplicate"); 214_ = Directory.CreateDirectory(Path.GetDirectoryName(targetDir)!); 293var directoryName = Path.GetDirectoryName(assemblyRelativeFilePath); 400path = Path.GetDirectoryName(path); 479_ = Directory.CreateDirectory(Path.GetDirectoryName(destinationPath)!);
Options.cs (2)
270path = Path.GetDirectoryName(path); 283dir = Path.GetDirectoryName(dir);
ProcessTestExecutor.cs (2)
97var dotnetDir = Path.GetDirectoryName(dotnetPath)!; 123var resultsDir = Path.GetDirectoryName(resultsFilePath);
SignalR.Client.FunctionalTestApp (2)
src\SignalR\common\Shared\TestCertificates.cs (2)
35var certPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "TestCertificates", "testCert.pfx"); 41var certPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "TestCertificates", "testCertECC.pfx");
StaticFilesAuth (1)
Startup.cs (1)
128new DirectoryInfo(Path.GetDirectoryName(fileSystemPath)),
System.CodeDom (1)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
221Directory.Delete(Path.GetDirectoryName(BasePath));
System.ComponentModel.TypeConverter (1)
System\ComponentModel\LicFileLicenseProvider.cs (1)
81string? moduleDir = Path.GetDirectoryName(modulePath);
System.Configuration.ConfigurationManager (6)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
221Directory.Delete(Path.GetDirectoryName(BasePath));
System\Configuration\AppSettingsSection.cs (1)
102: Path.Combine(Path.GetDirectoryName(configFile), File);
System\Configuration\Internal\InternalConfigHost.cs (1)
241string dir = Path.GetDirectoryName(streamName);
System\Configuration\NameValueFileSectionHandler.cs (1)
40string directory = Path.GetDirectoryName(configFile);
System\Configuration\UrlPath.cs (1)
15return Path.GetDirectoryName(path) ?? Path.GetPathRoot(path);
System\Diagnostics\TraceUtils.cs (1)
80string dirPath = Path.GetDirectoryName(filePath);
System.Console (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.Data.Common (1)
System\Data\xmlsaver.cs (1)
1094_filePath = Path.GetDirectoryName(fs.Name);
System.Diagnostics.Process (2)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (1)
140currentCGroupMemoryPath = Path.GetDirectoryName(currentCGroupMemoryPath);
System\Diagnostics\Process.Unix.cs (1)
712path = Path.Combine(Path.GetDirectoryName(path)!, filename);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\TextWriterTraceListener.cs (1)
228string dirPath = Path.GetDirectoryName(fullPath)!;
System.Formats.Tar (6)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System\Formats\Tar\TarEntry.cs (5)
315TarHelpers.CreateDirectory(Path.GetDirectoryName(destinationFullPath)!, mode: null, pendingModes); 339TarHelpers.CreateDirectory(Path.GetDirectoryName(destinationFullPath)!, mode: null, pendingModes); 367Path.IsPathFullyQualified(linkName) ? linkName : Path.Join(Path.GetDirectoryName(fileDestinationPath), linkName)); 450Debug.Assert(Directory.Exists(Path.GetDirectoryName(filePath))); 505string? directoryPath = Path.GetDirectoryName(filePath);
System.IO.Compression.ZipFile (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (1)
95Directory.CreateDirectory(Path.GetDirectoryName(fileDestinationPath)!);
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
146Directory.CreateDirectory(Path.GetDirectoryName(fileDestinationPath)!);
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.IsolatedStorage (3)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (2)
201return Directory.EnumerateDirectories(RootDirectory, searchPattern).Select(m => m.Substring(Path.GetDirectoryName(m)!.Length + 1)).ToArray(); 627parentDirectory = Path.GetDirectoryName(parentDirectory);
System\IO\IsolatedStorage\IsolatedStorageFile.NonMobile.cs (1)
74return Path.GetDirectoryName(RootDirectory.TrimEnd(Path.DirectorySeparatorChar));
System.IO.MemoryMappedFiles (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.Pipes (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.Ports (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicApi.cs (1)
99? System.IO.Path.GetDirectoryName(assemblyLocation)!
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
277string? dirname = Path.GetDirectoryName(fnfe.FileName);
System.Private.CoreLib (12)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
172string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
src\libraries\System.Private.CoreLib\src\System\AppContext.AnyOS.cs (1)
27string? directory = Path.GetDirectoryName(path);
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (1)
22string? s = Path.GetDirectoryName(fullPath);
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
67string? parentName = Path.GetDirectoryName(PathInternal.IsRoot(FullPath.AsSpan()) ? FullPath : Path.TrimEndingDirectorySeparator(FullPath));
src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (2)
46public string? DirectoryName => Path.GetDirectoryName(FullPath); 163if (!new DirectoryInfo(Path.GetDirectoryName(FullName)!).Exists)
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
103if (!Directory.Exists(Path.GetDirectoryName(destFullPath))) 248string? directoryName = Path.GetDirectoryName(fullPath);
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
345string requestedAssemblyPath = Path.Combine(Path.GetDirectoryName(requestorPath)!, requestedAssemblyName.Name + ".dll");
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
107_assemblyDirectorySearchPaths = [Path.GetDirectoryName(componentAssemblyPath)!];
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
762string? parentDirectory = Path.GetDirectoryName(parentAssembly.Location);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
251symlinkPath = Path.GetFullPath(symlinkPath, Path.GetDirectoryName(tzFilePath)!);
System.Private.Xml (3)
System\Xml\Serialization\Compilation.cs (3)
236path = Path.Combine(Path.GetDirectoryName(type.Assembly.Location)!, $"{assemblyName}.dll"); 241path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, $"{assemblyName}.dll"); 246path = Path.Combine(Path.GetDirectoryName(AppContext.BaseDirectory)!, $"{assemblyName}.dll");
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\PEReader.cs (1)
727peImageDirectory = Path.GetDirectoryName(peImagePath);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
44string? directoryPath = Path.GetDirectoryName(location);
System.Runtime.Caching (2)
System\Runtime\Caching\FileChangeNotificationSystem.cs (2)
102string dir = Path.GetDirectoryName(filePath); 151string dir = Path.GetDirectoryName(filePath);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\RuntimeEnvironment.cs (1)
28return string.Concat(Path.GetDirectoryName(runtimeDirectory), new ReadOnlySpan<char>(in sep));
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
370string? parent = Path.GetDirectoryName(selectedPath);
System.Windows.Forms.Analyzers.Tests (7)
CurrentReferences.cs (3)
116string? testPath = Path.GetDirectoryName(typeof(CurrentReferences).Assembly.Location); 119string? currentFolderPath = Path.GetDirectoryName(testPath); 131currentFolderPath = Path.GetDirectoryName(currentFolderPath);
TestFileLoader.cs (4)
56string toolName = Path.GetFileName(Path.GetDirectoryName(filePath))!; 64string toolName = Path.GetFileName(Path.GetDirectoryName(filePath))!; 72string toolName = Path.GetFileName(Path.GetDirectoryName(filePath))!; 80string toolName = Path.GetFileName(Path.GetDirectoryName(filePath))!;
System.Windows.Forms.Design.Tests (1)
System\Resources\Tools\CodeDomCompileHelper.cs (1)
29MetadataReference.CreateFromFile(Path.Join(Path.GetDirectoryName(corelibPath), "System.Runtime.dll")),
System.Windows.Forms.IntegrationTests.Common (2)
TestHelpers.cs (2)
91startInfo.WorkingDirectory = Path.GetDirectoryName(path); 244string currentDirectory = Path.GetDirectoryName(codeBasePath);
System.Windows.Forms.UI.IntegrationTests (5)
Infra\DataCollectionService.cs (2)
260string configuration = Path.GetFileName(Path.GetDirectoryName(assemblyDirectory))!; 270return Path.GetDirectoryName(assemblyPath)!;
Infra\ScreenshotService.cs (1)
33string directory = Path.GetDirectoryName(fullPath)!;
OpenFileDialogTests.cs (2)
42dialog.InitialDirectory = Path.GetDirectoryName(tempFile.Path); 55dialog.InitialDirectory = Path.GetDirectoryName(tempFile.Path);
Templates.Blazor.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
328var exportDir = Path.GetDirectoryName(path); 514var targetDirectoryPath = Path.GetDirectoryName(path);
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
328var exportDir = Path.GetDirectoryName(path); 514var targetDirectoryPath = Path.GetDirectoryName(path);
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
328var exportDir = Path.GetDirectoryName(path); 514var targetDirectoryPath = Path.GetDirectoryName(path);
Templates.Mvc.Tests (3)
BlazorTemplateTest.cs (1)
186project.TemplateOutputDir = Path.GetDirectoryName(multiProjectPath);
src\Shared\CertificateGeneration\CertificateManager.cs (2)
328var exportDir = Path.GetDirectoryName(path); 514var targetDirectoryPath = Path.GetDirectoryName(path);
Templates.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
328var exportDir = Path.GetDirectoryName(path); 514var targetDirectoryPath = Path.GetDirectoryName(path);
TestDiscoveryWorker (1)
Program.cs (1)
49outputFilePath = Path.Combine(Path.GetDirectoryName(assemblyFilePath)!, "testlist.json");
TestPassApp (1)
CommonControl2.cs (1)
15string executablePath = Path.GetDirectoryName(executable);
TestTasks (1)
InjectRequestHandler.cs (1)
59var outputFolder = Path.GetDirectoryName(depsFile);
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\MetadataCache.cs (1)
79var allModules = GetAllModules(primaryModule, Path.GetDirectoryName(fullPath)!);
VBCSCompiler.UnitTests (6)
AnalyzerConsistencyCheckerTests.cs (1)
105var result = AnalyzerConsistencyChecker.Check(Path.GetDirectoryName(TestFixture.Alpha)!, analyzerReferences, assemblyLoader, Logger);
CompilerServerTests.cs (4)
200clientDir: Path.GetDirectoryName(typeof(CommonCompiler).Assembly.Location), 264var result = ProcessUtilities.Run(file.Path, "", Path.GetDirectoryName(file.Path)); 450var basePath = Path.GetDirectoryName(typeof(CompilerServerUnitTests).Assembly.Location); 1460var basePath = Path.GetDirectoryName(typeof(CompilerServerUnitTests).Assembly.Location);
ServerUtil.cs (1)
159internal static string DefaultClientDirectory { get; } = Path.GetDirectoryName(typeof(BuildClientTests).Assembly.Location);
vbi (1)
Vbi.vb (1)
18Dim vbiDirectory = Path.GetDirectoryName(GetType(Vbi).GetTypeInfo().Assembly.ManifestModule.FullyQualifiedName)
xunit.console (4)
CommandLine.cs (1)
511var directory = Path.GetDirectoryName(path);
common\AssemblyResolution\AssemblyHelper.cs (1)
54var assemblyFolder = Path.GetDirectoryName(assemblyFileName);
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\AppBaseCompilationAssemblyResolver.cs (1)
73var sharedDirectory = Path.GetDirectoryName(sharedPath);
ConsoleRunner.cs (1)
131var runnerPath = Path.GetDirectoryName(typeof(Program).GetTypeInfo().Assembly.Location);