1 implementation of File
Microsoft.DotNet.InternalAbstractions (1)
FileSystemWrapper.cs (1)
10public IFile File { get; } = new FileWrapper();
24 references to File
dotnet-aot (18)
parent\dotnet\CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (1)
86if (!_fileSystem.File.Exists(toolCommand.Executable.Value))
parent\dotnet\ToolManifest\ToolManifestEditor.cs (5)
53_fileSystem.File.WriteAllText(manifest.Value, deserializedManifest.ToJson()); 76_fileSystem.File.WriteAllText(manifest.Value, deserializedManifest.ToJson()); 109_fileSystem.File.WriteAllText(manifest.Value, deserializedManifest.ToJson()); 138using (Stream jsonStream = _fileSystem.File.OpenRead(possibleManifest.Value)) 430_fileSystem.File.WriteAllText(
parent\dotnet\ToolManifest\ToolManifestFinder.cs (7)
72if (!_fileSystem.File.Exists(possibleManifest.Value)) 106if (!_fileSystem.File.Exists(possibleManifest.Value)) 138if (!_fileSystem.File.Exists(possibleManifest.Value)) 197if (_fileSystem.File.Exists(possibleManifest.Value)) 233|| _fileSystem.File.Exists(currentSearchDirectory.Value.WithFile(".git").Value)) 254_fileSystem.File.WriteAllText(manifestFileLocation, manifestFileContent); 279if (_fileSystem.File.Exists(possibleManifest.Value))
parent\dotnet\ToolPackage\LocalToolsResolverCache.cs (5)
41if (_fileSystem.File.Exists(packageCacheFile)) 51_fileSystem.File.WriteAllText( 64_fileSystem.File.WriteAllText( 76if (_fileSystem.File.Exists(packageCacheFile)) 98JsonSerializer.Deserialize(_fileSystem.File.ReadAllText(packageCacheFile), LocalToolsCacheJsonSerializerContext.Default.CacheRowArray);
Microsoft.DotNet.Configurer (6)
AspNetCertificateSentinel.cs (1)
33return _fileSystem.File.Exists(SentinelPath);
FileSentinel.cs (1)
26return _fileSystem.File.Exists(_file.Value);
FirstTimeUseNoticeSentinel.cs (1)
33return _fileSystem.File.Exists(SentinelPath);
IFileExtensions.cs (2)
18if (!fileSystem.File.Exists(filePath)) 25fileSystem.File.CreateEmptyFile(filePath);
UserLevelCacheWriter.cs (1)
18FileSystemWrapper.Default.File,