From bf66dcea692d114526b2dab6ab528d7f0d06d4f8 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 22 Sep 2015 08:45:27 -0700 Subject: [PATCH] Update CORS package version to 6.0.0 Fixes #24 --- samples/UseOptions/project.json | 2 +- samples/UsePolicyBuilder/project.json | 2 +- src/Microsoft.AspNet.Cors.Core/project.json | 5 ++++- src/Microsoft.AspNet.Cors/project.json | 7 +++++-- test/Microsoft.AspNet.Cors.Core.Test/CorsServiceTests.cs | 1 - test/Microsoft.AspNet.Cors.Core.Test/project.json | 7 ++----- test/Microsoft.AspNet.Cors.Test/project.json | 2 +- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/samples/UseOptions/project.json b/samples/UseOptions/project.json index cef1621..7d68c72 100644 --- a/samples/UseOptions/project.json +++ b/samples/UseOptions/project.json @@ -2,7 +2,7 @@ "webroot": "wwwroot", "version": "1.0.0-*", "dependencies": { - "Microsoft.AspNet.Cors": "1.0.0-*", + "Microsoft.AspNet.Cors": "6.0.0-*", "Microsoft.AspNet.Diagnostics": "1.0.0-*", "Microsoft.AspNet.Server.IIS": "1.0.0-*", "Microsoft.AspNet.Server.WebListener": "1.0.0-*", diff --git a/samples/UsePolicyBuilder/project.json b/samples/UsePolicyBuilder/project.json index cef1621..7d68c72 100644 --- a/samples/UsePolicyBuilder/project.json +++ b/samples/UsePolicyBuilder/project.json @@ -2,7 +2,7 @@ "webroot": "wwwroot", "version": "1.0.0-*", "dependencies": { - "Microsoft.AspNet.Cors": "1.0.0-*", + "Microsoft.AspNet.Cors": "6.0.0-*", "Microsoft.AspNet.Diagnostics": "1.0.0-*", "Microsoft.AspNet.Server.IIS": "1.0.0-*", "Microsoft.AspNet.Server.WebListener": "1.0.0-*", diff --git a/src/Microsoft.AspNet.Cors.Core/project.json b/src/Microsoft.AspNet.Cors.Core/project.json index 6962c1b..239620a 100644 --- a/src/Microsoft.AspNet.Cors.Core/project.json +++ b/src/Microsoft.AspNet.Cors.Core/project.json @@ -1,9 +1,12 @@ { - "version": "1.0.0-*", + "version": "6.0.0-*", "repository": { "type": "git", "url": "https://github.com/aspnet/cors" }, + "compilationOptions": { + "warningsAsErrors": true + }, "dependencies": { "Microsoft.AspNet.Http.Extensions": "1.0.0-*", "Microsoft.Framework.Configuration.Abstractions": "1.0.0-*", diff --git a/src/Microsoft.AspNet.Cors/project.json b/src/Microsoft.AspNet.Cors/project.json index 0a77b75..c0e28d8 100644 --- a/src/Microsoft.AspNet.Cors/project.json +++ b/src/Microsoft.AspNet.Cors/project.json @@ -1,11 +1,14 @@ { - "version": "1.0.0-*", + "version": "6.0.0-*", "repository": { "type": "git", "url": "https://github.com/aspnet/cors" }, + "compilationOptions": { + "warningsAsErrors": true + }, "dependencies": { - "Microsoft.AspNet.Cors.Core": "1.0.0-*" + "Microsoft.AspNet.Cors.Core": "6.0.0-*" }, "frameworks" : { diff --git a/test/Microsoft.AspNet.Cors.Core.Test/CorsServiceTests.cs b/test/Microsoft.AspNet.Cors.Core.Test/CorsServiceTests.cs index e32e322..ab3f790 100644 --- a/test/Microsoft.AspNet.Cors.Core.Test/CorsServiceTests.cs +++ b/test/Microsoft.AspNet.Cors.Core.Test/CorsServiceTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Internal; using Microsoft.Framework.OptionsModel; diff --git a/test/Microsoft.AspNet.Cors.Core.Test/project.json b/test/Microsoft.AspNet.Cors.Core.Test/project.json index 29cf71c..7eb54eb 100644 --- a/test/Microsoft.AspNet.Cors.Core.Test/project.json +++ b/test/Microsoft.AspNet.Cors.Core.Test/project.json @@ -2,7 +2,7 @@ "version": "1.0.0-*", "dependencies": { - "Microsoft.AspNet.Cors.Core": "1.0.0-*", + "Microsoft.AspNet.Cors.Core": "6.0.0-*", "Microsoft.AspNet.Http": "1.0.0-*", "Moq": "4.2.1312.1622", "xunit.runner.aspnet": "2.0.0-aspnet-*" @@ -13,9 +13,6 @@ }, "frameworks" : { - "dnx451" : { - "dependencies": { - } - } + "dnx451" : { } } } diff --git a/test/Microsoft.AspNet.Cors.Test/project.json b/test/Microsoft.AspNet.Cors.Test/project.json index a75b306..270d186 100644 --- a/test/Microsoft.AspNet.Cors.Test/project.json +++ b/test/Microsoft.AspNet.Cors.Test/project.json @@ -1,7 +1,7 @@ { "version": "1.0.0-*", "dependencies": { - "Microsoft.AspNet.Cors": "1.0.0-*", + "Microsoft.AspNet.Cors": "6.0.0-*", "Microsoft.AspNet.TestHost": "1.0.0-*", "Moq": "4.2.1312.1622", "xunit.runner.aspnet": "2.0.0-aspnet-*"