diff --git a/src/Shared/LayoutRenderers/AspNetResponseCookieLayoutRenderer.cs b/src/Shared/LayoutRenderers/AspNetResponseCookieLayoutRenderer.cs index 3c8ea975..249c0b88 100644 --- a/src/Shared/LayoutRenderers/AspNetResponseCookieLayoutRenderer.cs +++ b/src/Shared/LayoutRenderers/AspNetResponseCookieLayoutRenderer.cs @@ -71,11 +71,7 @@ protected override void DoAppend(StringBuilder builder, LogEventInfo logEvent) } var cookies = GetCookies(httpResponse); -#if ASP_NET_CORE if (cookies.Count > 0) -#else - if(cookies.Count > 0) -#endif { bool checkForExclude = (CookieNames == null || CookieNames.Count == 0) && Exclude?.Count > 0; var cookieValues = GetCookieValues(cookies, checkForExclude);