From a43692cf6648dd2270714ac8cc23de57d5431881 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Fri, 19 Jul 2019 11:58:29 -0700 Subject: [PATCH] =?UTF-8?q?Add=20netstandard20=20target=20for=20windowsser?= =?UTF-8?q?ver=20project.=20tests=20are=20modifie=E2=80=A6=20(#1237)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add netstandard20 target for windowsserver project. tests are modified to run on 2.1 instead of 1.0 as 1.0 is unsupported and sdk would soon remove 1.1 support as well. --- CHANGELOG.md | 1 + .../WindowsServer.NetCore.Tests.csproj | 4 ++-- Src/WindowsServer/WindowsServer/WindowsServer.csproj | 8 ++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9e11e53a..360fe90f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Version 2.11.0-beta2 + - [Add NetStandard2.0 Target for WindowsServerPackage](https://github.com/Microsoft/ApplicationInsights-dotnet-server/issues/1212) - [Add NetStandard2.0 Target for DependencyCollector](https://github.com/Microsoft/ApplicationInsights-dotnet-server/issues/1212) ## Version 2.11.0-beta1 diff --git a/Src/WindowsServer/WindowsServer.NetCore.Tests/WindowsServer.NetCore.Tests.csproj b/Src/WindowsServer/WindowsServer.NetCore.Tests/WindowsServer.NetCore.Tests.csproj index 1e98c7c31..0e9e27f19 100644 --- a/Src/WindowsServer/WindowsServer.NetCore.Tests/WindowsServer.NetCore.Tests.csproj +++ b/Src/WindowsServer/WindowsServer.NetCore.Tests/WindowsServer.NetCore.Tests.csproj @@ -1,4 +1,4 @@ - + @@ -10,7 +10,7 @@ true true Microsoft.ApplicationInsights.Tests - netcoreapp1.0 + netcoreapp2.1 diff --git a/Src/WindowsServer/WindowsServer/WindowsServer.csproj b/Src/WindowsServer/WindowsServer/WindowsServer.csproj index b2621e71d..b0fd0756b 100644 --- a/Src/WindowsServer/WindowsServer/WindowsServer.csproj +++ b/Src/WindowsServer/WindowsServer/WindowsServer.csproj @@ -5,7 +5,7 @@ Microsoft.ApplicationInsights.WindowsServer Microsoft.AI.WindowsServer $(OutputPath)\$(AssemblyName).XML - net45;netstandard1.6 + net45;netstandard1.6;netstandard2.0 @@ -16,6 +16,10 @@ Azure Monitoring Analytics ApplicationInsights Telemetry AppInsights + + $(DefineConstants);NETSTANDARD; + + @@ -43,7 +47,7 @@ - +