108 references to IsPathRooted
aspire (1)
Projects\ProjectLocator.cs (1)
114var qualifiedAppHostPath = Path.IsPathRooted(appHostPath) ? appHostPath : Path.Combine(settingsFile.Directory!.FullName, appHostPath);
Aspire.Hosting (3)
ApplicationModel\AspireStore.cs (1)
24if (!Path.IsPathRooted(basePath))
ApplicationModel\ContainerMountAnnotation.cs (1)
31if (!Path.IsPathRooted(source))
ContainerResourceBuilderExtensions.cs (1)
182var sourcePath = Path.IsPathRooted(source) ? source : Path.GetFullPath(source, builder.ApplicationBuilder.AppHostDirectory);
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (1)
118var virtualEnvironment = new VirtualEnvironment(Path.IsPathRooted(virtualEnvironmentPath)
PythonProjectResourceBuilderExtensions.cs (1)
120var virtualEnvironment = new VirtualEnvironment(Path.IsPathRooted(virtualEnvironmentPath)
Aspire.Hosting.Tests (2)
AspireStoreTests.cs (1)
27Assert.True(Path.IsPathRooted(path));
DistributedApplicationTests.cs (1)
909Assert.True(Path.IsPathRooted(redisContainer.Spec.VolumeMounts[0].Source));
BuildActionTelemetryTable (1)
Program.cs (1)
103var rootedPath = Path.IsPathRooted(path)
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\RuntimeGraphCache.cs (1)
30if (!Path.IsPathRooted(runtimeJsonPath))
dotnet-svcutil-lib (9)
CommandProcessorOptions.cs (2)
389workingDirectory = Path.IsPathRooted(this.OutputFile.OriginalPath()) ? 407if (!Path.IsPathRooted(originalDirSpec))
Metadata\MetadataDocumentLoader.cs (1)
544if (!File.Exists(fullFileName) && !Path.IsPathRooted(schemaLocation))
Metadata\MetadataFileNameManager.cs (2)
53filePath = Path.IsPathRooted(uniqueFileNameWithExtension) ? uniqueFileNameWithExtension : Path.Combine(basePath, uniqueFileNameWithExtension); 83var filePath = Path.IsPathRooted(fileNameWithExtension) ? fileNameWithExtension : Path.Combine(basePath, fileNameWithExtension);
Shared\MSBuildProj.cs (2)
297if (!Path.IsPathRooted(binReference)) 874if (!Path.IsPathRooted(outputPath))
Shared\Options\UpdateOptions.cs (1)
107if (this.OutputFile != null && !Path.IsPathRooted(this.OutputFile.OriginalPath()))
Shared\Utilities\PathHelper.cs (1)
109if (Path.IsPathRooted(childPath))
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
23if (!Path.IsPathRooted(projectPath))
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
23if (!Path.IsPathRooted(projectPath))
GenerateAnalyzerNuspec (2)
Program.cs (2)
174var fileWithPath = Path.IsPathRooted(file) ? file : Path.Combine(projectDir, file); 180readmeFile = Path.IsPathRooted(readmeFile) ? readmeFile : Path.GetFullPath(Path.Combine(projectDir, readmeFile));
illink (1)
Microsoft.AspNetCore (1)
HostingPathResolver.cs (1)
23if (Path.IsPathRooted(contentRootPath))
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManagerConfiguration.cs (1)
182if (Path.IsPathRooted(folderPath))
Microsoft.AspNetCore.Hosting (1)
WebHostBuilder.cs (1)
369if (Path.IsPathRooted(contentRootPath))
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostBuilderTests.cs (2)
687Assert.True(Path.IsPathRooted(basePath)); 690Assert.True(Path.IsPathRooted(basePath2));
Microsoft.AspNetCore.Http (1)
BindingAddress.cs (1)
246if (isUnixPipe && !Path.IsPathRooted(GetUnixPipePath(host)))
Microsoft.AspNetCore.Http.Results (2)
PhysicalFileHttpResult.cs (1)
143if (!Path.IsPathRooted(fileName))
Results.cs (1)
481=> Path.IsPathRooted(path)
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
55else if (!Path.IsPathRooted(_path))
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\PhysicalFileResultExecutor.cs (1)
79if (!Path.IsPathRooted(result.FileName))
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelServerOptions.cs (1)
587if (!Path.IsPathRooted(socketPath))
Microsoft.AspNetCore.Shared.Tests (1)
DotNetMuxerTests.cs (1)
20Assert.True(Path.IsPathRooted(muxerPath), "The path should be rooted");
Microsoft.AspNetCore.StaticAssets (2)
Infrastructure\StaticAssetsEndpointDataSourceHelper.cs (1)
63return Path.IsPathRooted(staticAssetsManifestPath) ? staticAssetsManifestPath : Path.Combine(AppContext.BaseDirectory, staticAssetsManifestPath);
StaticAssetsEndpointRouteBuilderExtensions.cs (1)
33staticAssetsManifestPath = !Path.IsPathRooted(staticAssetsManifestPath) ?
Microsoft.CodeAnalysis (4)
CommandLine\AnalyzerConfig.cs (1)
189if (pathToFile is null || !Path.IsPathRooted(pathToFile) || string.IsNullOrEmpty(Path.GetFileName(pathToFile)))
CommandLine\SarifErrorLogger.cs (1)
133if (Path.IsPathRooted(path))
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
76if (!Path.IsPathRooted(baseDirectory))
RuleSet\RuleSetInclude.cs (1)
110if (Path.IsPathRooted(includePath))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (2)
121Assert.True(Path.IsPathRooted(portableExecutable.FilePath), $"'{portableExecutable.FilePath}' is not a fully-qualified file name"); 126Assert.True(Path.IsPathRooted(reference.Display), $"'{reference.Display}' is not a fully-qualified file name");
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
76if (!Path.IsPathRooted(baseDirectory))
Workspace\CommandLineProject.cs (1)
151var absolutePath = Path.IsPathRooted(fileArg.Path) || string.IsNullOrEmpty(projectDirectory)
Microsoft.DotNet.Baselines.Tasks (1)
CreateUpdatePR.cs (1)
90if (string.IsNullOrEmpty(TargetDirectory) || Path.IsPathRooted(TargetDirectory))
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateWixBuildWixpack.cs (1)
1069if (!Path.IsPathRooted(source))
src\CreateWixCommandPackageDropBase.cs (1)
283else if (!Path.IsPathRooted(oldPath))
Microsoft.DotNet.SignCheckTask (1)
src\SignCheckTask.cs (1)
148if (Path.IsPathRooted(checkFile))
Microsoft.DotNet.SignTool (2)
src\SignToolTask.cs (2)
240if (!Path.IsPathRooted(TempDir)) 416if (!Path.IsPathRooted(itemToSign.ItemSpec))
Microsoft.Extensions.ApiDescription.Client (1)
GetOpenApiReferenceMetadata.cs (1)
95if (!Path.IsPathRooted(outputPath) && !string.IsNullOrEmpty(OutputDirectory))
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationSource.cs (1)
77System.IO.Path.IsPathRooted(Path))
Microsoft.Extensions.FileProviders.Physical (4)
PhysicalFileProvider.cs (3)
56if (!Path.IsPathRooted(root)) 274if (Path.IsPathRooted(subpath)) 319if (Path.IsPathRooted(subpath))
PhysicalFilesWatcher.cs (1)
135if (Path.IsPathRooted(filter) || PathUtils.PathNavigatesAboveRoot(filter))
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
55if (Path.IsPathRooted(file))
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
259if (Path.IsPathRooted(contentRootPath))
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
159if (Path.IsPathRooted(compilationOutputPath))
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
159if (Path.IsPathRooted(compilationOutputPath))
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
159if (Path.IsPathRooted(compilationOutputPath))
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
159if (Path.IsPathRooted(compilationOutputPath))
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
159if (Path.IsPathRooted(compilationOutputPath))
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
159if (Path.IsPathRooted(compilationOutputPath))
Microsoft.Maui.Resizetizer (1)
GetMauiAssetPath.cs (1)
50 if (Path.IsPathRooted(path))
Microsoft.ML.TestFramework (2)
BaseTestBaseline.cs (2)
411Contracts.Assert(!Path.IsPathRooted(name), "file name should not be a full path"); 412Contracts.Assert(!Path.IsPathRooted(nameBase), "file nameBase should not be a full path");
Microsoft.ML.TestFrameworkCommon (2)
Utility\LibraryLoader.cs (2)
91if (Path.IsPathRooted(name)) 99if (!Path.IsPathRooted(loadTarget) || File.Exists(loadTarget))
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
533_modelLocation = Path.IsPathRooted(modelLocation) ? modelLocation : Path.Combine(Directory.GetCurrentDirectory(), modelLocation);
Microsoft.VisualBasic.Core (12)
Microsoft\VisualBasic\CompilerServices\IOUtils.vb (1)
42If Path.IsPathRooted(PathName) Then
Microsoft\VisualBasic\FileIO\FileSystem.vb (11)
965Debug.Assert(sourceDirectoryPath <> "" And IO.Path.IsPathRooted(sourceDirectoryPath), "Invalid Source") 966Debug.Assert(targetDirectoryPath <> "" And IO.Path.IsPathRooted(targetDirectoryPath), "Invalid Target") 1267Debug.Assert(FilePath <> "" AndAlso IO.Path.IsPathRooted(FilePath), FilePath) 1449Debug.Assert(Path <> "" AndAlso IO.Path.IsPathRooted(Path), Path) 1485Debug.Assert(Not FullPath = "" AndAlso IO.Path.IsPathRooted(FullPath), "Must be full path") 1556If Not IO.Path.IsPathRooted(Path) Then 1571If IO.Path.IsPathRooted(Path) Then 1602Debug.Assert(FullSourcePath <> "" And IO.Path.IsPathRooted(FullSourcePath), "Invalid FullSourcePath") 1603Debug.Assert(FullTargetPath <> "" And IO.Path.IsPathRooted(FullTargetPath), "Invalid FullTargetPath") 1667Debug.Assert(FullPath <> "" And IO.Path.IsPathRooted(FullPath), "FullPath must be a full path") 2097Debug.Assert(TargetDirectoryPath <> "" And IO.Path.IsPathRooted(TargetDirectoryPath), "Invalid TargetPath")
PresentationBuildTasks (2)
MS\Internal\Tasks\CompilerWrapper.cs (1)
390if (!Path.IsPathRooted(filePath))
MS\Internal\Tasks\TaskHelper.cs (1)
68if (!Path.IsPathRooted(thePath) )
Replay (1)
Replay.cs (1)
244if (Path.IsPathRooted(argValue))
System.ComponentModel.TypeConverter (1)
System\ComponentModel\SyntaxCheck.cs (1)
60return Path.IsPathRooted(value);
System.Configuration.ConfigurationManager (7)
System\Configuration\BaseConfigurationRecord.cs (1)
3205if (string.IsNullOrEmpty(configSource) || Path.IsPathRooted(configSource))
System\Configuration\ClientConfigPaths.cs (3)
100if (!Path.IsPathRooted(externalConfigPath)) 156if (Path.IsPathRooted(roamingFolderPath)) 163if (Path.IsPathRooted(localFolderPath))
System\Configuration\Internal\InternalConfigHost.cs (2)
194if (!Path.IsPathRooted(streamName)) throw ExceptionUtil.ParameterInvalid(nameof(streamName)); 298return Path.IsPathRooted(streamName);
System\Diagnostics\TraceUtils.cs (1)
74if ((initializeData[0] != Path.DirectorySeparatorChar) && (initializeData[0] != Path.AltDirectorySeparatorChar) && !Path.IsPathRooted(initializeData))
System.Diagnostics.Process (2)
System\Diagnostics\Process.Unix.cs (2)
635if (Path.IsPathRooted(filename)) 699if (Path.IsPathRooted(filename))
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.Unix.cs (1)
203if (Path.IsPathRooted(pipeName))
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
364if (!Path.IsPathRooted(pickupDirectory))
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
80if (Path.IsPathRooted(path))
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (1)
29if (Path.IsPathRooted(expression))
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (2)
296/// assume that rooted paths <see cref="IsPathRooted(string)"/> are not relative. This isn't the case. 399if (IsPathRooted(paths[i]))
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (2)
60if (!IsPathRooted(path)) 143return IsPathRooted(path) ? PathInternal.DirectorySeparatorCharAsString : string.Empty;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
80if (Path.IsPathRooted(id) || IdContainsAnyDisallowedChars(id))
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\RuntimeEnvironment.cs (1)
22if (!Path.IsPathRooted(runtimeDirectory))
System.Windows.Forms (1)
System\Resources\ResXDataNode.cs (1)
133_fileRefFullPath = !Path.IsPathRooted(fileRefDetails[0]) && basePath is not null