From 095a21d1174fcb2167750a4e71aeb4f1b6e4c4a1 Mon Sep 17 00:00:00 2001 From: Felix Huang Date: Thu, 14 Dec 2023 18:10:15 -0800 Subject: [PATCH 1/2] Remove ResolveAssemblyReference.WritingCacheFile message --- src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs | 8 -------- src/Tasks/Resources/Strings.resx | 4 ---- src/Tasks/Resources/xlf/Strings.cs.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.de.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.es.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.fr.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.it.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.ja.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.ko.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.pl.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.pt-BR.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.ru.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.tr.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.zh-Hans.xlf | 5 ----- src/Tasks/Resources/xlf/Strings.zh-Hant.xlf | 5 ----- 15 files changed, 77 deletions(-) diff --git a/src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs b/src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs index 381fa520766..5f96e3b5bb8 100644 --- a/src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs +++ b/src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs @@ -2064,14 +2064,6 @@ internal void WriteStateFile() } else if (!string.IsNullOrEmpty(_stateFile) && (_cache.IsDirty || _cache.instanceLocalOutgoingFileStateCache.Count < _cache.instanceLocalFileStateCache.Count)) { - // Either the cache is dirty (we added or updated an item) or the number of items actually used is less than what - // we got by reading the state file prior to execution. Serialize the cache into the state file. - if (FailIfNotIncremental) - { - Log.LogErrorFromResources("ResolveAssemblyReference.WritingCacheFile", _stateFile); - return; - } - _cache.SerializeCache(_stateFile, Log); } } diff --git a/src/Tasks/Resources/Strings.resx b/src/Tasks/Resources/Strings.resx index ce39286376c..d4c6d77ab34 100644 --- a/src/Tasks/Resources/Strings.resx +++ b/src/Tasks/Resources/Strings.resx @@ -1776,10 +1776,6 @@ Assembly file '{0}' could not be opened -- PE image doesn't contain managed metadata. - - Updating assembly cache file "{0}". - -