diff --git a/examples/NetCore2/HostingExample/HostingExample.csproj b/examples/NetCore2/HostingExample/HostingExample.csproj
index 0baf7fd4..09fb5d08 100644
--- a/examples/NetCore2/HostingExample/HostingExample.csproj
+++ b/examples/NetCore2/HostingExample/HostingExample.csproj
@@ -15,7 +15,7 @@
-
+
diff --git a/src/NLog.Extensions.Logging/Logging/NLogMessageParameterList.cs b/src/NLog.Extensions.Logging/Logging/NLogMessageParameterList.cs
index 52464bd0..cefc9614 100644
--- a/src/NLog.Extensions.Logging/Logging/NLogMessageParameterList.cs
+++ b/src/NLog.Extensions.Logging/Logging/NLogMessageParameterList.cs
@@ -97,7 +97,6 @@ private static bool IsValidParameterList(IReadOnlyList throw new NotSupportedException();
}
+ private static MessageTemplateParameter GetMessageTemplateParameter(string parameterName, object parameterValue)
+ {
+ var capture = GetCaptureType(parameterName[0]);
+ if (capture != CaptureType.Normal)
+ parameterName = parameterName.Substring(1);
+ return new MessageTemplateParameter(parameterName, parameterValue, null, capture);
+ }
+
private static CaptureType GetCaptureType(char firstChar)
{
if (firstChar == '@')
diff --git a/test/NLog.Extensions.Hosting.Tests/NLog.Extensions.Hosting.Tests.csproj b/test/NLog.Extensions.Hosting.Tests/NLog.Extensions.Hosting.Tests.csproj
index 3a163fce..527343c6 100644
--- a/test/NLog.Extensions.Hosting.Tests/NLog.Extensions.Hosting.Tests.csproj
+++ b/test/NLog.Extensions.Hosting.Tests/NLog.Extensions.Hosting.Tests.csproj
@@ -21,7 +21,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+