diff --git a/NLog.Web.AspNetCore/LayoutRenderers/AssemblyVersionLayoutRenderer.cs b/NLog.Web.AspNetCore/LayoutRenderers/AssemblyVersionLayoutRenderer.cs
index f1ac8389..c42b5734 100644
--- a/NLog.Web.AspNetCore/LayoutRenderers/AssemblyVersionLayoutRenderer.cs
+++ b/NLog.Web.AspNetCore/LayoutRenderers/AssemblyVersionLayoutRenderer.cs
@@ -65,9 +65,6 @@ protected override void Append(StringBuilder builder, LogEventInfo logEvent)
private static string GetAssemblyVersion()
{
-#if ASP_NET_CORE && NETSTANDARD1_3
- return PlatformServices.Default.Application.ApplicationVersion;
-#else
var assembly = Assembly.GetEntryAssembly();
#if !ASP_NET_CORE
@@ -79,7 +76,6 @@ private static string GetAssemblyVersion()
var version = assembly?.GetName().Version.ToString();
return version;
-#endif
}
#if !ASP_NET_CORE
diff --git a/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj b/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj
index f6b55ddc..6d0ed234 100644
--- a/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj
+++ b/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj
@@ -5,7 +5,7 @@
NLog.Web.AspNetCore
Julian Verdurmen
- netstandard1.3;netstandard1.5;net451;net461;netstandard2.0
+ netstandard1.5;net451;net461;netstandard2.0
true
NLog.Web.AspNetCore
NLog.snk
@@ -61,8 +61,7 @@
-
-
+
@@ -75,6 +74,7 @@
+
@@ -84,8 +84,4 @@
-
-
-
-