diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/LoggerMessageGenerator.Parser.cs b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/LoggerMessageGenerator.Parser.cs index 03c5ad2cf57624..8542778705243a 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/LoggerMessageGenerator.Parser.cs +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/LoggerMessageGenerator.Parser.cs @@ -323,7 +323,7 @@ public IReadOnlyList GetLogClasses(IEnumerableArgument is not referenced from the logging message - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method Logging template has no corresponding method argument @@ -219,4 +219,4 @@ Generating more than 6 arguments is not supported - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.cs.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.cs.xlf index 8a6e5be5b381c6..f11c79ddf53fbc 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.cs.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.cs.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.de.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.de.xlf index 835dfbbc7fbf1a..3493cbf5ffbc13 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.de.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.de.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.es.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.es.xlf index 0db7b4e17b3667..6848e885fb24dd 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.es.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.es.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.fr.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.fr.xlf index 757ff655a6b142..7938224a4ee00b 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.fr.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.fr.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.it.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.it.xlf index 8717aa30c3c287..19f0fd82ced408 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.it.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.it.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ja.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ja.xlf index 9ed2e744c66a4c..05e8a429437d07 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ja.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ja.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ko.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ko.xlf index 5b7bbb9010784c..b77da90c244e1d 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ko.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ko.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pl.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pl.xlf index eed366ed41893d..13e7290cacf775 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pl.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pl.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pt-BR.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pt-BR.xlf index c33ad19bb8cd91..6950e340745356 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pt-BR.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pt-BR.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ru.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ru.xlf index 37548b1750a5cc..c70ed0221e6c96 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ru.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ru.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.tr.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.tr.xlf index dccdbd55e57aa9..3aef3683ac3e0f 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.tr.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.tr.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hans.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hans.xlf index 98b2d4b7185e9b..319e98613ff779 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hans.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hans.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hant.xlf b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hant.xlf index 0a54ae2ca73273..4286caaabcd005 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hant.xlf +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hant.xlf @@ -153,8 +153,8 @@ - Template {0} is not provided as argument to the logging method - Template {0} is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method + Template '{0}' is not provided as argument to the logging method @@ -164,4 +164,4 @@ - \ No newline at end of file + diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorParserTests.cs b/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorParserTests.cs index e3e62f72b10cf7..bb158e9f175396 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorParserTests.cs +++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorParserTests.cs @@ -93,6 +93,7 @@ partial class C Assert.Single(diagnostics); Assert.Equal(DiagnosticDescriptors.TemplateHasNoCorrespondingArgument.Id, diagnostics[0].Id); + Assert.Contains("Template 'foo' is not provided as argument to the logging method", diagnostics[0].GetMessage(), StringComparison.InvariantCulture); } [Fact]