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