From f0358182e48403a1ba410a3f098e4afe3a8ca686 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Mon, 2 May 2016 11:27:18 -0700 Subject: [PATCH] Fix build warnings --- samples/LargeResponseApp/project.json | 10 ++++++---- samples/SampleApp/project.json | 12 ++++++----- .../project.json | 20 ++++++++++--------- .../project.json | 18 +++++++++-------- .../project.json | 4 ++-- .../project.json | 4 ++-- .../project.json | 14 +++++++------ .../project.json | 2 +- 8 files changed, 47 insertions(+), 37 deletions(-) diff --git a/samples/LargeResponseApp/project.json b/samples/LargeResponseApp/project.json index c6690d651d..4c284fa6ed 100644 --- a/samples/LargeResponseApp/project.json +++ b/samples/LargeResponseApp/project.json @@ -4,7 +4,7 @@ "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*" }, - "compilationOptions": { + "buildOptions": { "emitEntryPoint": true }, "frameworks": { @@ -21,7 +21,9 @@ ] } }, - "content": [ - "hosting.json" - ] + "publishOptions": { + "include": [ + "hosting.json" + ] + } } \ No newline at end of file diff --git a/samples/SampleApp/project.json b/samples/SampleApp/project.json index 846c49eb07..1ee872316f 100644 --- a/samples/SampleApp/project.json +++ b/samples/SampleApp/project.json @@ -6,7 +6,7 @@ "Microsoft.AspNetCore.Server.Kestrel.Https": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*" }, - "compilationOptions": { + "buildOptions": { "emitEntryPoint": true }, "frameworks": { @@ -24,8 +24,10 @@ ] } }, - "content": [ - "hosting.json", - "testCert.pfx" - ] + "publishOptions": { + "include": [ + "hosting.json", + "testCert.pfx" + ] + } } \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.Server.Kestrel.Https/project.json b/src/Microsoft.AspNetCore.Server.Kestrel.Https/project.json index 521d8b09c4..3c74d74e93 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel.Https/project.json +++ b/src/Microsoft.AspNetCore.Server.Kestrel.Https/project.json @@ -1,26 +1,28 @@ { "version": "1.0.0-*", "description": "HTTPS support for the ASP.NET Core Kestrel cross-platform web server.", - "tags": [ - "aspnetcore", - "kestrel" - ], - "compilationOptions": { + "buildOptions": { "keyFile": "../../tools/Key.snk", "nowarn": [ "CS1591" ], "xmlDoc": true }, - "repository": { - "type": "git", - "url": "git://github.com/aspnet/kestrelhttpserver" + "packOptions": { + "repository": { + "type": "git", + "url": "git://github.com/aspnet/kestrelhttpserver" + }, + "tags": [ + "aspnetcore", + "kestrel" + ] }, "dependencies": { "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*" }, "frameworks": { - "net451": { }, + "net451": {}, "netstandard1.3": { "dependencies": { "System.Net.Security": "4.0.0-*" diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/project.json b/src/Microsoft.AspNetCore.Server.Kestrel/project.json index 3b56f01b17..4d875358f5 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/project.json +++ b/src/Microsoft.AspNetCore.Server.Kestrel/project.json @@ -1,13 +1,15 @@ { "version": "1.0.0-*", "description": "ASP.NET Core Kestrel cross-platform web server.", - "tags": [ - "aspnetcore", - "kestrel" - ], - "repository": { - "type": "git", - "url": "git://github.com/aspnet/kestrelhttpserver" + "packOptions": { + "repository": { + "type": "git", + "url": "git://github.com/aspnet/kestrelhttpserver" + }, + "tags": [ + "aspnetcore", + "kestrel" + ] }, "dependencies": { "System.Buffers": "4.0.0-*", @@ -51,7 +53,7 @@ ] } }, - "compilationOptions": { + "buildOptions": { "allowUnsafe": true, "keyFile": "../../tools/Key.snk", "nowarn": [ diff --git a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/project.json b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/project.json index 51e8e7d344..ca59561e28 100644 --- a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/project.json +++ b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/project.json @@ -1,6 +1,7 @@ { "version": "1.0.0-*", "dependencies": { + "dotnet-test-xunit": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.AspNetCore.Http.Abstractions": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", @@ -16,7 +17,6 @@ "version": "1.0.0-*", "type": "platform" }, - "dotnet-test-xunit": "1.0.0-*", "System.Net.Http": "4.0.1-*", "System.Runtime.Serialization.Primitives": "4.1.1-*" }, @@ -35,7 +35,7 @@ } } }, - "compilationOptions": { + "buildOptions": { "allowUnsafe": true }, "testRunner": "xunit" diff --git a/test/Microsoft.AspNetCore.Server.Kestrel.TestCommon/project.json b/test/Microsoft.AspNetCore.Server.Kestrel.TestCommon/project.json index 2795fb5773..c6f9341a65 100644 --- a/test/Microsoft.AspNetCore.Server.Kestrel.TestCommon/project.json +++ b/test/Microsoft.AspNetCore.Server.Kestrel.TestCommon/project.json @@ -1,7 +1,7 @@ { "version": "1.0.0-*", "frameworks": { - "net451": { }, + "net451": {}, "netstandard1.3": { "dependencies": { "System.Threading": "4.0.11-*", @@ -12,7 +12,7 @@ ] } }, - "compilationOptions": { + "buildOptions": { "keyFile": "../../tools/Key.snk" } } \ No newline at end of file diff --git a/test/Microsoft.AspNetCore.Server.KestrelTests/project.json b/test/Microsoft.AspNetCore.Server.KestrelTests/project.json index c0237faec2..22fb7428be 100644 --- a/test/Microsoft.AspNetCore.Server.KestrelTests/project.json +++ b/test/Microsoft.AspNetCore.Server.KestrelTests/project.json @@ -1,6 +1,7 @@ { "version": "1.0.0-*", "dependencies": { + "dotnet-test-xunit": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel.Https": "1.0.0-*", @@ -21,8 +22,7 @@ "System.Net.Http": "4.0.1-*", "System.Net.Http.WinHttpHandler": "4.0.0-*", "System.Net.Sockets": "4.1.0-*", - "System.Runtime.Handles": "4.0.1-*", - "dotnet-test-xunit": "1.0.0-*" + "System.Runtime.Handles": "4.0.1-*" }, "imports": [ "dnxcore50", @@ -38,12 +38,14 @@ } } }, - "compilationOptions": { + "buildOptions": { "allowUnsafe": true, "keyFile": "../../tools/Key.snk" }, "testRunner": "xunit", - "content": [ - "TestResources/testCert.pfx" - ] + "publishOptions": { + "include": [ + "TestResources/testCert.pfx" + ] + } } \ No newline at end of file diff --git a/tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/project.json b/tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/project.json index 03b787a99e..1682d3763a 100644 --- a/tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/project.json +++ b/tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/project.json @@ -1,6 +1,6 @@ { "version": "1.0.0-*", - "compilationOptions": { + "buildOptions": { "emitEntryPoint": true }, "dependencies": {