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