From 85216463075a344e4978bd849e149ac4bc8e0118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Thu, 12 May 2016 03:28:55 +0200 Subject: [PATCH] Update project.json to conform to the new schema --- external/NWebsec/project.json | 25 ++++++------ samples/Mvc.Client/project.json | 30 +++++---------- samples/Mvc.Server/project.json | 32 +++++----------- src/OpenIddict.Assets/project.json | 57 +++++++++++++++------------- src/OpenIddict.Core/project.json | 3 +- src/OpenIddict.EF/project.json | 45 ++++++++++++---------- src/OpenIddict.Models/project.json | 45 ++++++++++++---------- src/OpenIddict.Mvc/project.json | 51 ++++++++++++++----------- src/OpenIddict.Security/project.json | 45 ++++++++++++---------- src/OpenIddict/project.json | 45 ++++++++++++---------- 10 files changed, 190 insertions(+), 188 deletions(-) diff --git a/external/NWebsec/project.json b/external/NWebsec/project.json index b27f7849..0fae83a3 100644 --- a/external/NWebsec/project.json +++ b/external/NWebsec/project.json @@ -1,15 +1,18 @@ { "version": "1.0.0-internal-*", - "title": "NWebsec.Middleware (ASP.NET 5)", - "description": "NWebsec middleware for ASP.NET 5 applications. NWebsec helps you set important security headers and detect potentially dangerous redirects. See project website for documentation.", - "releaseNotes": "This release includes core functions for the NWebsec security libaries.", - "authors": [ "André N. Klingsheim" ], - "owners": [ "André N. Klingsheim" ], - "copyright": "Copyright © 2014 - 2015", - "tags": [ "NWebsec Security AspNet AppSec" ], - "projectUrl": "https://docs.nwebsec.com/en/latest/", - "licenseUrl": "https://github.com/NWebsec/NWebsec/blob/master/LICENSE", - "iconUrl": "https://klings.blob.core.windows.net/nwebsecicon/nwebsec_nuget.png", + + "packOptions": { + "title": "NWebsec.Middleware (ASP.NET 5)", + "description": "NWebsec middleware for ASP.NET 5 applications. NWebsec helps you set important security headers and detect potentially dangerous redirects. See project website for documentation.", + "releaseNotes": "This release includes core functions for the NWebsec security libaries.", + "authors": [ "André N. Klingsheim" ], + "owners": [ "André N. Klingsheim" ], + "copyright": "Copyright © 2014 - 2015", + "tags": [ "NWebsec Security AspNet AppSec" ], + "projectUrl": "https://docs.nwebsec.com/en/latest/", + "licenseUrl": "https://github.com/NWebsec/NWebsec/blob/master/LICENSE", + "iconUrl": "https://klings.blob.core.windows.net/nwebsecicon/nwebsec_nuget.png", + }, "shared": "**/**.cs", @@ -30,6 +33,6 @@ }, "dependencies": { - "Microsoft.AspNetCore.Http.Abstractions": "1.0.0-*" + "Microsoft.AspNetCore.Http.Abstractions": "1.0.0-rc2-*" } } diff --git a/samples/Mvc.Client/project.json b/samples/Mvc.Client/project.json index ee06b777..882a385b 100644 --- a/samples/Mvc.Client/project.json +++ b/samples/Mvc.Client/project.json @@ -1,7 +1,8 @@ { - "compilationOptions": { + "buildOptions": { "debugType": "portable", "emitEntryPoint": true, + "warningsAsErrors": true, "preserveCompilationContext": true }, @@ -9,7 +10,6 @@ "Microsoft.AspNetCore.Authentication.Cookies": "1.0.0-rc2-*", "Microsoft.AspNetCore.Authentication.OpenIdConnect": "1.0.0-rc2-*", "Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-*", - "Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-rc2-*", "Microsoft.AspNetCore.Hosting": "1.0.0-rc2-*", "Microsoft.AspNetCore.Mvc": "1.0.0-rc2-*", "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-*", @@ -51,23 +51,11 @@ "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" }, - "content": [ - "wwwroot", - "Views", - "web.config" - ], - - "exclude": [ - "wwwroot", - "node_modules", - "bower_components" - ], - - "publishExclude": [ - "node_modules", - "bower_components", - "**.xproj", - "**.user", - "**.vspscc" - ] + "publishOptions": { + "include": [ + "wwwroot", + "Views", + "web.config" + ] + } } \ No newline at end of file diff --git a/samples/Mvc.Server/project.json b/samples/Mvc.Server/project.json index 5b5c4121..9e377940 100644 --- a/samples/Mvc.Server/project.json +++ b/samples/Mvc.Server/project.json @@ -1,7 +1,8 @@ { - "compilationOptions": { + "buildOptions": { "debugType": "portable", "emitEntryPoint": true, + "warningsAsErrors": true, "preserveCompilationContext": true }, @@ -12,7 +13,6 @@ "Microsoft.AspNetCore.Authentication.Google": "1.0.0-rc2-*", "Microsoft.AspNetCore.Authentication.Twitter": "1.0.0-rc2-*", "Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-*", - "Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-rc2-*", "Microsoft.AspNetCore.Mvc": "1.0.0-rc2-*", "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-*", @@ -56,24 +56,12 @@ "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" }, - "content": [ - "wwwroot", - "Views", - "config.json", - "web.config" - ], - - "exclude": [ - "wwwroot", - "node_modules", - "bower_components" - ], - - "publishExclude": [ - "node_modules", - "bower_components", - "**.xproj", - "**.user", - "**.vspscc" - ] + "publishOptions": { + "include": [ + "wwwroot", + "Views", + "config.json", + "web.config" + ] + } } \ No newline at end of file diff --git a/src/OpenIddict.Assets/project.json b/src/OpenIddict.Assets/project.json index 467616d4..dd6ca3c3 100644 --- a/src/OpenIddict.Assets/project.json +++ b/src/OpenIddict.Assets/project.json @@ -1,38 +1,43 @@ { "version": "1.0.0-alpha2-*", - "description": "Contains the default assets used by OpenIddict.", - "authors": [ "Kévin Chalet" ], - "owners": [ "Kévin Chalet" ], + "packOptions": { + "description": "Contains the default assets used by OpenIddict.", + "authors": [ "Kévin Chalet" ], + "owners": [ "Kévin Chalet" ], - "projectUrl": "https://github.com/openiddict/openiddict-core", - "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", - "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", + "projectUrl": "https://github.com/openiddict/openiddict-core", + "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", + "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", - "repository": { - "type": "git", - "url": "git://github.com/openiddict/openiddict-core" - }, + "repository": { + "type": "git", + "url": "git://github.com/openiddict/openiddict-core" + }, - "tags": [ - "aspnetcore", - "authentication", - "jwt", - "openidconnect", - "openiddict", - "security" - ], + "tags": [ + "aspnetcore", + "authentication", + "jwt", + "openidconnect", + "openiddict", + "security" + ] + }, - "compilationOptions": { + "buildOptions": { + "warningsAsErrors": true, "nowarn": [ "CS1591" ], - "xmlDoc": true - }, + "xmlDoc": true, - "resource": [ - "fonts/*", - "scripts/*", - "stylesheets/*" - ], + "embed": { + "include": [ + "fonts/*", + "scripts/*", + "stylesheets/*" + ] + } + }, "dependencies": { "JetBrains.Annotations": { "type": "build", "version": "10.1.2-eap" }, diff --git a/src/OpenIddict.Core/project.json b/src/OpenIddict.Core/project.json index 381c33b8..b7c4829e 100644 --- a/src/OpenIddict.Core/project.json +++ b/src/OpenIddict.Core/project.json @@ -23,7 +23,8 @@ "security" ], - "compilationOptions": { + "buildOptions": { + "warningsAsErrors": true, "nowarn": [ "CS1591" ], "xmlDoc": true }, diff --git a/src/OpenIddict.EF/project.json b/src/OpenIddict.EF/project.json index 47a9d4f4..e3bc9ed1 100644 --- a/src/OpenIddict.EF/project.json +++ b/src/OpenIddict.EF/project.json @@ -1,29 +1,32 @@ { "version": "1.0.0-alpha2-*", - "description": "Entity Framework adapter for OpenIddict.", - "authors": [ "Kévin Chalet" ], - "owners": [ "Kévin Chalet" ], - - "projectUrl": "https://github.com/openiddict/openiddict-core", - "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", - "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", - - "repository": { - "type": "git", - "url": "git://github.com/openiddict/openiddict-core" + "packOptions": { + "description": "Entity Framework adapter for OpenIddict.", + "authors": [ "Kévin Chalet" ], + "owners": [ "Kévin Chalet" ], + + "projectUrl": "https://github.com/openiddict/openiddict-core", + "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", + "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", + + "repository": { + "type": "git", + "url": "git://github.com/openiddict/openiddict-core" + }, + + "tags": [ + "aspnetcore", + "authentication", + "jwt", + "openidconnect", + "openiddict", + "security" + ] }, - "tags": [ - "aspnetcore", - "authentication", - "jwt", - "openidconnect", - "openiddict", - "security" - ], - - "compilationOptions": { + "buildOptions": { + "warningsAsErrors": true, "nowarn": [ "CS1591" ], "xmlDoc": true }, diff --git a/src/OpenIddict.Models/project.json b/src/OpenIddict.Models/project.json index a36ead4b..4c5b6741 100644 --- a/src/OpenIddict.Models/project.json +++ b/src/OpenIddict.Models/project.json @@ -1,29 +1,32 @@ { "version": "1.0.0-alpha2-*", - "description": "Contains the default models used by OpenIddict.", - "authors": [ "Kévin Chalet" ], - "owners": [ "Kévin Chalet" ], - - "projectUrl": "https://github.com/openiddict/openiddict-core", - "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", - "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", - - "repository": { - "type": "git", - "url": "git://github.com/openiddict/openiddict-core" + "packOptions": { + "description": "Contains the default models used by OpenIddict.", + "authors": [ "Kévin Chalet" ], + "owners": [ "Kévin Chalet" ], + + "projectUrl": "https://github.com/openiddict/openiddict-core", + "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", + "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", + + "repository": { + "type": "git", + "url": "git://github.com/openiddict/openiddict-core" + }, + + "tags": [ + "aspnetcore", + "authentication", + "jwt", + "openidconnect", + "openiddict", + "security" + ] }, - "tags": [ - "aspnetcore", - "authentication", - "jwt", - "openidconnect", - "openiddict", - "security" - ], - - "compilationOptions": { + "buildOptions": { + "warningsAsErrors": true, "nowarn": [ "CS1591" ], "xmlDoc": true }, diff --git a/src/OpenIddict.Mvc/project.json b/src/OpenIddict.Mvc/project.json index 44cdff6b..edb53a97 100644 --- a/src/OpenIddict.Mvc/project.json +++ b/src/OpenIddict.Mvc/project.json @@ -1,34 +1,39 @@ { "version": "1.0.0-alpha2-*", - "description": "ASP.NET Core MVC module for OpenIddict.", - "authors": [ "Kévin Chalet" ], - "owners": [ "Kévin Chalet" ], - - "projectUrl": "https://github.com/openiddict/openiddict-core", - "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", - "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", + "packOptions": { + "description": "ASP.NET Core MVC module for OpenIddict.", + "authors": [ "Kévin Chalet" ], + "owners": [ "Kévin Chalet" ], + + "projectUrl": "https://github.com/openiddict/openiddict-core", + "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", + "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", + + "repository": { + "type": "git", + "url": "git://github.com/openiddict/openiddict-core" + }, - "repository": { - "type": "git", - "url": "git://github.com/openiddict/openiddict-core" + "tags": [ + "aspnetcore", + "authentication", + "jwt", + "openidconnect", + "openiddict", + "security" + ] }, - "tags": [ - "aspnetcore", - "authentication", - "jwt", - "openidconnect", - "openiddict", - "security" - ], - - "compilationOptions": { + "buildOptions": { + "warningsAsErrors": true, "nowarn": [ "CS1591" ], - "xmlDoc": true - }, + "xmlDoc": true, - "resource": "Views/**", + "embed": { + "include": [ "Views/**" ] + } + }, "dependencies": { "AspNet.Hosting.Extensions": "1.0.0-alpha2-*", diff --git a/src/OpenIddict.Security/project.json b/src/OpenIddict.Security/project.json index dfd1effb..7324eef2 100644 --- a/src/OpenIddict.Security/project.json +++ b/src/OpenIddict.Security/project.json @@ -1,29 +1,32 @@ { "version": "1.0.0-alpha2-*", - "description": "Security headers module for OpenIddict.", - "authors": [ "Kévin Chalet" ], - "owners": [ "Kévin Chalet" ], - - "projectUrl": "https://github.com/openiddict/openiddict-core", - "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", - "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", - - "repository": { - "type": "git", - "url": "git://github.com/openiddict/openiddict-core" + "packOptions": { + "description": "Security headers module for OpenIddict.", + "authors": [ "Kévin Chalet" ], + "owners": [ "Kévin Chalet" ], + + "projectUrl": "https://github.com/openiddict/openiddict-core", + "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", + "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", + + "repository": { + "type": "git", + "url": "git://github.com/openiddict/openiddict-core" + }, + + "tags": [ + "aspnetcore", + "authentication", + "jwt", + "openidconnect", + "openiddict", + "security" + ] }, - "tags": [ - "aspnetcore", - "authentication", - "jwt", - "openidconnect", - "openiddict", - "security" - ], - - "compilationOptions": { + "buildOptions": { + "warningsAsErrors": true, "nowarn": [ "CS1591" ], "xmlDoc": true }, diff --git a/src/OpenIddict/project.json b/src/OpenIddict/project.json index e658609f..def28b6c 100644 --- a/src/OpenIddict/project.json +++ b/src/OpenIddict/project.json @@ -1,29 +1,32 @@ { "version": "1.0.0-alpha2-*", - "description": "Easy-to-use OpenID Connect server for ASP.NET Core.", - "authors": [ "Kévin Chalet" ], - "owners": [ "Kévin Chalet" ], - - "projectUrl": "https://github.com/openiddict/openiddict-core", - "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", - "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", - - "repository": { - "type": "git", - "url": "git://github.com/openiddict/openiddict-core" + "packOptions": { + "description": "Easy-to-use OpenID Connect server for ASP.NET Core.", + "authors": [ "Kévin Chalet" ], + "owners": [ "Kévin Chalet" ], + + "projectUrl": "https://github.com/openiddict/openiddict-core", + "iconUrl": "https://avatars3.githubusercontent.com/u/13908567?s=64", + "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html", + + "repository": { + "type": "git", + "url": "git://github.com/openiddict/openiddict-core" + }, + + "tags": [ + "aspnetcore", + "authentication", + "jwt", + "openidconnect", + "openiddict", + "security" + ] }, - "tags": [ - "aspnetcore", - "authentication", - "jwt", - "openidconnect", - "openiddict", - "security" - ], - - "compilationOptions": { + "buildOptions": { + "warningsAsErrors": true, "nowarn": [ "CS1591" ], "xmlDoc": true },