37 references to FileUtilities
Microsoft.CodeAnalysis (37)
AssemblyUtilities.cs (3)
68using (var reader = new PEReader(FileUtilities.OpenRead(potentialDependency))) 78using (var reader = new PEReader(FileUtilities.OpenRead(assemblyPath))) 102using (var reader = new PEReader(FileUtilities.OpenRead(assemblyPath)))
AssemblyUtilitiesCore.cs (1)
31using (var reader = new PEReader(FileUtilities.OpenRead(filePath)))
CommandLine\CommandLineArguments.cs (2)
567string? resolvedPath = FileUtilities.ResolveRelativePath(reference.FilePath, basePath: null, baseDirectory: BaseDirectory, searchPaths: ReferencePaths, fileExists: File.Exists); 570resolvedPath = FileUtilities.TryNormalizeAbsolutePath(resolvedPath);
CommandLine\CommandLineParser.cs (8)
273string? resolvedPath = FileUtilities.ResolveRelativePath(unquoted, baseDirectory); 549string? resolvedPath = FileUtilities.ResolveRelativePath(path, baseDirectory); 563responsePaths.Add(FileUtilities.NormalizeAbsolutePath(directory)); 869fullPath = FileUtilities.ResolveRelativePath(filePath, baseDirectory); 1091string? resolvedPath = FileUtilities.ResolveRelativePath(path, baseDirectory); 1141string? resolvedPath = FileUtilities.ResolveRelativePath(path, baseDirectory); 1235FileUtilities.ResolveRelativePath(directory, baseDirectory); 1275resolvedPath = FileUtilities.ResolveRelativePath(resolvedPath, baseDirectory);
CommandLine\CommonCompiler.cs (1)
1716string? fullPath = FileUtilities.ResolveRelativePath(path, baseDirectory);
Compilation.EmitStream.cs (1)
148tempStream = FileUtilities.CreateFileStreamChecked(streamConstructor, tempFilePath);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
170using var reader = new PEReader(FileUtilities.OpenRead(FullPath));
FileKey.cs (1)
40return new FileKey(fullPath, FileUtilities.GetFileTimeStamp(fullPath));
FileSystem\RelativePathResolver.cs (2)
38string? resolvedPath = FileUtilities.ResolveRelativePath(reference, baseFilePath, BaseDirectory, SearchPaths, FileExists); 44return FileUtilities.TryNormalizeAbsolutePath(resolvedPath);
FileSystemExtensions.cs (4)
46using (var outputStream = FileUtilities.CreateFileStreamChecked(File.Create, outputPath, nameof(outputPath))) 47using (var pdbStream = (pdbPath == null ? null : FileUtilities.CreateFileStreamChecked(File.Create, pdbPath, nameof(pdbPath)))) 48using (var xmlDocStream = (xmlDocPath == null ? null : FileUtilities.CreateFileStreamChecked(File.Create, xmlDocPath, nameof(xmlDocPath)))) 49using (var win32ResourcesStream = (win32ResourcesPath == null ? null : FileUtilities.CreateFileStreamChecked(File.OpenRead, win32ResourcesPath, nameof(win32ResourcesPath))))
RuleSet\RuleSetProcessor.cs (2)
62filePath = FileUtilities.NormalizeAbsolutePath(filePath); 68using (Stream stream = FileUtilities.OpenRead(filePath))
SourceFileResolver.cs (4)
98string? normalizedPath = FileUtilities.NormalizeRelativePath(path, baseFilePath, _baseDirectory); 104string? resolvedPath = FileUtilities.ResolveRelativePath(path, baseFilePath, _baseDirectory, _searchPaths, FileExists); 110return FileUtilities.TryNormalizeAbsolutePath(resolvedPath); 116return FileUtilities.OpenRead(resolvedPath);
StrongName\DesktopStrongNameProvider.cs (2)
124return FileUtilities.TryNormalizeAbsolutePath(path); 138return FileUtilities.TryNormalizeAbsolutePath(combinedPath!);
XmlFileResolver.cs (5)
58resolvedPath = FileUtilities.ResolveRelativePath(path, baseFilePath, _baseDirectory); 62return FileUtilities.TryNormalizeAbsolutePath(resolvedPath); 68resolvedPath = FileUtilities.ResolveRelativePath(path, _baseDirectory); 72return FileUtilities.TryNormalizeAbsolutePath(resolvedPath); 82return FileUtilities.OpenRead(resolvedPath);