1 write to instanceLocalFileStateCache
Microsoft.Build.Tasks.Core (1)
SystemState.cs (1)
272ref (translator.Mode == TranslationDirection.WriteToStream) ? ref instanceLocalOutgoingFileStateCache : ref instanceLocalFileStateCache,
12 references to instanceLocalFileStateCache
Microsoft.Build.Tasks.Core (12)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2256else if (_stateFile.Value is not null && (_cache.IsDirty || _cache.instanceLocalOutgoingFileStateCache.Count < _cache.instanceLocalFileStateCache.Count))
SystemState.cs (11)
28/// Cache at the SystemState instance level. Has the same contents as <see cref="instanceLocalFileStateCache"/>. 45/// Cache at the SystemState instance level. It is serialized to disk and reused between instances via <see cref="instanceLocalFileStateCache"/>. 266if (instanceLocalFileStateCache is null) 268throw new NullReferenceException(nameof(instanceLocalFileStateCache)); 285/// Flag that indicates that <see cref="instanceLocalFileStateCache"/> has been modified. 386bool isCachedInInstance = instanceLocalFileStateCache.TryGetValue(path, out FileState cachedInstanceFileState); 400instanceLocalFileStateCache[path] = cachedProcessFileState; 441instanceLocalFileStateCache[path] = fileState; 616foreach (KeyValuePair<string, FileState> kvp in sysState.instanceLocalFileStateCache) 627retVal.instanceLocalFileStateCache[fullPath] = fileState; 647instanceLocalOutgoingFileStateCache = instanceLocalFileStateCache.ToDictionary(kvp => FileUtilities.MakeRelative(Path.GetDirectoryName(stateFile), kvp.Key), kvp => kvp.Value);