21 references to PathUtility
dotnet (17)
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (1)
87PathUtility.GetPathWithDirectorySeparator(runtimeAssembly.Path));
Commands\New\DotnetCommandCallbacks.cs (6)
18PathUtility.EnsureAllPathsExist([projectPath], CliStrings.CommonFileNotFound, allowDirectories: false); 36PathUtility.EnsureAllPathsExist([projectPath], CliStrings.CommonFileNotFound, allowDirectories: false); 37PathUtility.EnsureAllPathsExist([projectToAdd], CliStrings.CommonFileNotFound, allowDirectories: false); 49PathUtility.EnsureAllPathsExist([pathToRestore], CliStrings.CommonFileNotFound, allowDirectories: true); 56PathUtility.EnsureAllPathsExist([solutionPath], CliStrings.CommonFileNotFound, allowDirectories: false); 57PathUtility.EnsureAllPathsExist(projectsToAdd, CliStrings.CommonFileNotFound, allowDirectories: false);
Commands\Reference\Add\ReferenceAddCommand.cs (1)
35PathUtility.EnsureAllPathsExist(arguments,
Commands\Run\CSharpCompilerCommand.cs (1)
47private static string SdkPath => field ??= PathUtility.EnsureNoTrailingDirectorySeparator(AppContext.BaseDirectory);
Commands\Solution\Add\SolutionAddCommand.cs (2)
30return "/" + string.Join("/", PathUtility.GetPathWithDirectorySeparator(path).Split(Path.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries)) + "/"; 60PathUtility.EnsureAllPathsExist(_projects, CliStrings.CouldNotFindProjectOrDirectory, true);
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
354return new TestModule(runProperties, PathUtility.FixFilePath(projectFullPath), targetFramework, isTestingPlatformApplication, launchSettings, project.GetPropertyValue(ProjectProperties.TargetPath), rootVariableName);
Commands\Tool\Search\ToolSearchCommand.cs (1)
23if (!PathUtility.CheckForNuGetInNuGetConfig())
Commands\Workload\Install\FileBasedInstaller.cs (3)
22using PathUtility = Microsoft.DotNet.Cli.Utils.PathUtility; 742PathUtility.DeleteFileAndEmptyParents(path, maxDirectoriesToDelete: 2); 793PathUtility.DeleteFileAndEmptyParents(installationRecordPath, maxDirectoriesToDelete: 3);
MsbuildProject.cs (1)
97foreach (var @ref in refs.Select((r) => PathUtility.GetPathWithBackSlashes(r)))
Microsoft.DotNet.Cli.Utils (2)
Extensions\LockFileExtensions.cs (1)
28PathUtility.EnsureNoTrailingDirectorySeparator(p.Path));
Extensions\MSBuildProjectExtensions.cs (1)
130return PathUtility.GetPathWithBackSlashes(include.ToLower());
Microsoft.TemplateEngine.Cli (2)
NuGet\NugetApiManager.cs (1)
37if (sourceFeed == null && DotNet.Cli.Utils.PathUtility.CheckForNuGetInNuGetConfig())
TemplatePackageCoordinator.cs (1)
444IEnumerable<PackageSource> packageSources = LoadNuGetSources(additionalSources, includeNuGetFeed: PathUtility.CheckForNuGetInNuGetConfig());