From 8473e74b3296ca98a869570bd19defd7c57d2685 Mon Sep 17 00:00:00 2001 From: Dominick Baier Date: Fri, 10 Mar 2017 15:42:37 +0100 Subject: [PATCH] Remove NET452 Target (#901) * modify csproj and build * Re-enable pack on non-Windows * update readme --- README.md | 4 ++- build.cake | 28 ++----------------- src/IdentityServer4/IdentityServer4.csproj | 7 +---- .../IdentityServer.IntegrationTests.csproj | 7 +---- .../IdentityServer.UnitTests.csproj | 7 +---- 5 files changed, 9 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index 391142df73..6ee23f945b 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,11 @@ This is the main repo for IdentityServer4 - but there's more: IdentityServer is built against ASP.NET Core 1.1 using the RTM tooling that ships with Visual Studio 2017. This is the only configuration we support on the issue tracker. +IdentityServer is a netstandard 1.4 library, which means it is compatible with .NET Core 1.1 and .NET Framework 4.6.1. See [here](https://docs.microsoft.com/en-us/dotnet/articles/standard/library) for more details. + ### How to build -* [Install](https://www.microsoft.com/net/download/core#/current) .NET Core 1.1 +* [Install](https://www.microsoft.com/net/download/core) .NET Core 1.1 * Run build.ps1 from Powershell ### Acknowledgements diff --git a/build.cake b/build.cake index 79a22a995d..cce724962e 100644 --- a/build.cake +++ b/build.cake @@ -18,24 +18,14 @@ Task("Build") Configuration = configuration }; - if (!IsRunningOnWindows()) - { - settings.Framework = "netstandard1.4"; - } - DotNetCoreBuild(Directory("./src/IdentityServer4"), settings); - - if (!IsRunningOnWindows()) - { - settings.Framework = "netcoreapp1.1"; - } - DotNetCoreBuild(Directory("./src/Host"), settings); + DotNetCoreBuild(Directory("./test/IdentityServer.IntegrationTests"), settings); DotNetCoreBuild(Directory("./test/IdentityServer.UnitTests"), settings); }); -Task("RunTests") +Task("Test") .IsDependentOn("Restore") .IsDependentOn("Clean") .Does(() => @@ -49,12 +39,6 @@ Task("RunTests") Configuration = configuration }; - if (!IsRunningOnWindows()) - { - Information("Not running on Windows - skipping tests for full .NET Framework"); - settings.Framework = "netcoreapp1.1"; - } - DotNetCoreTest(project.FullPath, settings); } }); @@ -64,12 +48,6 @@ Task("Pack") .IsDependentOn("Clean") .Does(() => { - if (!IsRunningOnWindows()) - { - Information("Not running on Windows - skipping pack"); - return; - } - var settings = new DotNetCorePackSettings { Configuration = configuration, @@ -109,7 +87,7 @@ Task("Restore") Task("Default") .IsDependentOn("Build") - .IsDependentOn("RunTests") + .IsDependentOn("Test") .IsDependentOn("Pack"); RunTarget(target); \ No newline at end of file diff --git a/src/IdentityServer4/IdentityServer4.csproj b/src/IdentityServer4/IdentityServer4.csproj index 1928e5223b..26168303b1 100644 --- a/src/IdentityServer4/IdentityServer4.csproj +++ b/src/IdentityServer4/IdentityServer4.csproj @@ -4,7 +4,7 @@ OpenID Connect and OAuth 2.0 Framework for ASP.NET Core 1.3.0 Brock Allen;Dominick Baier - netstandard1.4;net452 + netstandard1.4 IdentityServer4 IdentityServer4 OAuth2;OAuth 2.0;OpenID Connect;Security;Identity;IdentityServer @@ -33,9 +33,4 @@ - - - - - diff --git a/test/IdentityServer.IntegrationTests/IdentityServer.IntegrationTests.csproj b/test/IdentityServer.IntegrationTests/IdentityServer.IntegrationTests.csproj index 194bc9b52d..96ea0201cb 100644 --- a/test/IdentityServer.IntegrationTests/IdentityServer.IntegrationTests.csproj +++ b/test/IdentityServer.IntegrationTests/IdentityServer.IntegrationTests.csproj @@ -1,7 +1,7 @@  - netcoreapp1.1;net452 + netcoreapp1.1 IdentityServer.IntegrationTests IdentityServer.IntegrationTests true @@ -33,11 +33,6 @@ - - - - - diff --git a/test/IdentityServer.UnitTests/IdentityServer.UnitTests.csproj b/test/IdentityServer.UnitTests/IdentityServer.UnitTests.csproj index 8e15edc9ed..ee21ff9374 100644 --- a/test/IdentityServer.UnitTests/IdentityServer.UnitTests.csproj +++ b/test/IdentityServer.UnitTests/IdentityServer.UnitTests.csproj @@ -1,7 +1,7 @@  - netcoreapp1.1;net452 + netcoreapp1.1 IdentityServer.UnitTests IdentityServer.UnitTests true @@ -33,11 +33,6 @@ - - - - -