From 891fd949bddaf5872dd66db2c31c9c5a15160fc4 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Sep 2021 21:02:36 -0700 Subject: [PATCH 1/2] Add specific versions --- docs/fundamentals/syslib-diagnostics/syslib1004.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/fundamentals/syslib-diagnostics/syslib1004.md b/docs/fundamentals/syslib-diagnostics/syslib1004.md index f8e3b0fb34253..d110de984ee6a 100644 --- a/docs/fundamentals/syslib-diagnostics/syslib1004.md +++ b/docs/fundamentals/syslib-diagnostics/syslib1004.md @@ -1,12 +1,15 @@ --- title: SYSLIB1004 error description: Learn about the diagnostic that generates compile-time error SYSLIB1004. -ms.date: 05/07/2021 +ms.date: 09/22/2021 --- # SYSLIB1004: Logging class cannot be in a nested type -A method annotated with the `LoggerMessageAttribute` is contained in a nested type. This is not currently supported by the logging model. +A method annotated with the `LoggerMessageAttribute` is contained in a nested type. This is not supported by the logging model in Preview 4 and 5 of .NET 6. + +> [!NOTE] +> Logger methods in nested classes *are supported* starting in .NET 6 Preview 6. ## Workarounds From c2e31a411b325de0e85b57973a68adcd4cd6c029 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Thu, 23 Sep 2021 09:38:40 -0700 Subject: [PATCH 2/2] Update docs/fundamentals/syslib-diagnostics/syslib1004.md --- docs/fundamentals/syslib-diagnostics/syslib1004.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fundamentals/syslib-diagnostics/syslib1004.md b/docs/fundamentals/syslib-diagnostics/syslib1004.md index d110de984ee6a..e7a9db68514da 100644 --- a/docs/fundamentals/syslib-diagnostics/syslib1004.md +++ b/docs/fundamentals/syslib-diagnostics/syslib1004.md @@ -6,7 +6,7 @@ ms.date: 09/22/2021 # SYSLIB1004: Logging class cannot be in a nested type -A method annotated with the `LoggerMessageAttribute` is contained in a nested type. This is not supported by the logging model in Preview 4 and 5 of .NET 6. +A method annotated with the `LoggerMessageAttribute` is contained in a nested type. This is not supported by the logging model in Preview 4 and 5 of .NET 6. > [!NOTE] > Logger methods in nested classes *are supported* starting in .NET 6 Preview 6.