162 references to IsPathRooted
aspire (1)
Projects\ProjectLocator.cs (1)
93var 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)
117var virtualEnvironment = new VirtualEnvironment(Path.IsPathRooted(virtualEnvironmentPath)
PythonProjectResourceBuilderExtensions.cs (1)
120var virtualEnvironment = new VirtualEnvironment(Path.IsPathRooted(virtualEnvironmentPath)
Aspire.Hosting.Tests (2)
AspireStoreTests.cs (1)
28Assert.True(Path.IsPathRooted(path));
DistributedApplicationTests.cs (1)
910Assert.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)
368if (Path.IsPathRooted(contentRootPath))
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostBuilderTests.cs (2)
683Assert.True(Path.IsPathRooted(basePath)); 686Assert.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.Build (16)
AssemblyLoadInfo.cs (1)
179ErrorUtilities.VerifyThrow(Path.IsPathRooted(assemblyFile), "Assembly file path should be rooted");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
348if (!Path.IsPathRooted(projectFiles[i]))
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (1)
83if (!System.IO.Path.IsPathRooted(manifest.Path))
BackEnd\Shared\BuildRequestConfiguration.cs (1)
823ErrorUtilities.VerifyThrow(Path.IsPathRooted(referenceFullPath), "Method does not treat path normalization cases");
BuildCheck\Utilities\BuildCheckUtilities.cs (1)
13if (!Path.IsPathRooted(path))
Definition\Toolset.cs (1)
999if (Path.IsPathRooted(_overrideTasksPath))
Definition\ToolsetReader.cs (1)
620if (trimmedValue.Length > 0 && !Path.IsPathRooted(trimmedValue))
ElementLocation\XmlDocumentWithLocation.cs (1)
359ErrorUtilities.VerifyThrow(Path.IsPathRooted(fullPath), "should be full path");
ErrorUtilities.cs (1)
178if (!Path.IsPathRooted(value))
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
171if (state.EvaluationDirectory != null && !Path.IsPathRooted(item.ItemSpec))
Evaluation\Evaluator.cs (1)
2113if (directoryOfImportingFile != null && !Path.IsPathRooted(importFileUnescaped))
Evaluation\Expander\WellKnownFunctions.cs (1)
116returnVal = Path.IsPathRooted(arg0);
FileUtilities.cs (1)
1263return Path.IsPathRooted(FixFilePath(path));
Instance\TaskRegistry.cs (1)
367if (assemblyFile != null && !Path.IsPathRooted(assemblyFile))
Logging\LoggerDescription.cs (1)
59if (loggerAssemblyFile != null && !Path.IsPathRooted(loggerAssemblyFile))
Modifiers.cs (1)
418if (!Path.IsPathRooted(path))
Microsoft.Build.Engine.OM.UnitTests (3)
ErrorUtilities.cs (1)
178if (!Path.IsPathRooted(value))
FileUtilities.cs (1)
1263return Path.IsPathRooted(FixFilePath(path));
TransientIO.cs (1)
82var absolute = Path.GetFullPath(Path.IsPathRooted(relative) ? relative : Path.Combine(tempRoot, relative));
Microsoft.Build.Engine.UnitTests (2)
FileMatcher_Tests.cs (1)
2267if (path.Length == 0 && !Path.IsPathRooted(candidate))
PrintLineDebugger_Tests.cs (1)
192Path.IsPathRooted(artifactsDirectory).ShouldBeTrue();
Microsoft.Build.Tasks.Core (17)
AssemblyDependency\Reference.cs (2)
445Debug.Assert(!Path.IsPathRooted(filename), "Satellite path should be relative to the current reference."); 457Debug.Assert(!Path.IsPathRooted(filename), "Serialization assembly path should be relative to the current reference.");
AssemblyDependency\ReferenceTable.cs (2)
458if (!Path.IsPathRooted(assemblyFileName)) 745pathRooted = Path.IsPathRooted(finalName);
AssignTargetPath.cs (1)
91!Path.IsPathRooted(Files[i].ItemSpec) &&
ConvertToAbsolutePath.cs (1)
56if (!Path.IsPathRooted(path.ItemSpec))
ErrorUtilities.cs (1)
178if (!Path.IsPathRooted(value))
FileMatcher.cs (1)
1980Debug.Assert(Path.IsPathRooted(projectDirectoryUnescaped));
FileUtilities.cs (1)
1263return Path.IsPathRooted(FixFilePath(path));
GenerateManifestBase.cs (1)
541file.TargetPath = Path.IsPathRooted(file.SourcePath) || file.SourcePath.StartsWith("..", StringComparison.Ordinal) ? Path.GetFileName(file.SourcePath) : file.SourcePath;
ManifestUtil\BaseReference.cs (1)
54if (!Path.IsPathRooted(path))
ManifestUtil\Manifest.cs (2)
218if (!Path.IsPathRooted(defaultDir)) 312if (Path.IsPathRooted(path))
Modifiers.cs (1)
418if (!Path.IsPathRooted(path))
ResolveCodeAnalysisRuleSet.cs (1)
106else if (!Path.IsPathRooted(CodeAnalysisRuleSet))
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
120if (!String.IsNullOrWhiteSpace(ToolExe) && Path.IsPathRooted(ToolExe))
WriteCodeFragment.cs (1)
109if (OutputFile != null && OutputDirectory != null && !Path.IsPathRooted(OutputFile.ItemSpec))
Microsoft.Build.Tasks.UnitTests (3)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (2)
858if (!Path.IsPathRooted(path)) 1052if (!Path.IsPathRooted(path))
PrintLineDebugger_Tests.cs (1)
192Path.IsPathRooted(artifactsDirectory).ShouldBeTrue();
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (2)
1840if (Path.IsPathRooted(path)) 2028Path.IsPathRooted(path)
TestEnvironment.cs (1)
756System.IO.Path.IsPathRooted(Path).ShouldBeTrue($"{Path} is not rooted");
Microsoft.Build.Utilities.Core (4)
ErrorUtilities.cs (1)
178if (!Path.IsPathRooted(value))
FileMatcher.cs (1)
1980Debug.Assert(Path.IsPathRooted(projectDirectoryUnescaped));
FileUtilities.cs (1)
1263return Path.IsPathRooted(FixFilePath(path));
Modifiers.cs (1)
418if (!Path.IsPathRooted(path))
Microsoft.Build.Utilities.UnitTests (1)
PrintLineDebugger_Tests.cs (1)
192Path.IsPathRooted(artifactsDirectory).ShouldBeTrue();
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 (1)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
121Assert.True(Path.IsPathRooted(portableExecutable.FilePath), $"'{portableExecutable.FilePath}' 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.Build.Tasks.Installers (1)
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)
219if (!Path.IsPathRooted(TempDir)) 376if (!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)
534_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")
MSBuild (4)
AssemblyLoadInfo.cs (1)
179ErrorUtilities.VerifyThrow(Path.IsPathRooted(assemblyFile), "Assembly file path should be rooted");
ErrorUtilities.cs (1)
178if (!Path.IsPathRooted(value))
FileUtilities.cs (1)
1263return Path.IsPathRooted(FixFilePath(path));
Modifiers.cs (1)
418if (!Path.IsPathRooted(path))
MSBuildTaskHost (4)
AssemblyLoadInfo.cs (1)
179ErrorUtilities.VerifyThrow(Path.IsPathRooted(assemblyFile), "Assembly file path should be rooted");
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (1)
178if (!Path.IsPathRooted(value))
FileUtilities.cs (1)
1263return Path.IsPathRooted(FixFilePath(path));
Modifiers.cs (1)
418if (!Path.IsPathRooted(path))
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