From 2205f33a595303dc2ca4c8c5605ac594deb58931 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/IISSample/project.json | 14 +++-- .../project.json | 11 ++-- .../project.json | 14 +++-- .../project.json | 62 ++++++++++--------- .../project.json | 2 +- .../project.json | 4 +- test/TestSites.Portable/project.json | 14 +++-- test/TestSites/project.json | 26 ++++---- 8 files changed, 80 insertions(+), 67 deletions(-) diff --git a/samples/IISSample/project.json b/samples/IISSample/project.json index 7106131a02..ea3cecea3e 100644 --- a/samples/IISSample/project.json +++ b/samples/IISSample/project.json @@ -5,11 +5,11 @@ "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*" }, - "compilationOptions": { + "buildOptions": { "emitEntryPoint": true }, "frameworks": { - "net451": { }, + "net451": {}, "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { @@ -20,7 +20,9 @@ "imports": "dnxcore50" } }, - "content": [ - "web.config" - ] -} + "publishOptions": { + "include": [ + "web.config" + ] + } +} \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/project.json b/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/project.json index 4bc2876271..2679a12c6d 100644 --- a/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/project.json +++ b/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/project.json @@ -1,14 +1,15 @@ -{ +{ "version": "1.0.0-*", - "compilationOptions": { + "buildOptions": { "emitEntryPoint": true, "warningsAsErrors": true, "keyFile": "../../tools/Key.snk", - "nowarn": [ "CS1591" ], + "nowarn": [ + "CS1591" + ], "xmlDoc": true, "outputName": "dotnet-publish-iis" }, - "dependencies": { "Microsoft.Extensions.CommandLineUtils": "1.0.0-*", "Microsoft.DotNet.ProjectModel": "1.0.0-*", @@ -27,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.Server.IISIntegration/project.json b/src/Microsoft.AspNetCore.Server.IISIntegration/project.json index f4600ff82e..5767a876e0 100644 --- a/src/Microsoft.AspNetCore.Server.IISIntegration/project.json +++ b/src/Microsoft.AspNetCore.Server.IISIntegration/project.json @@ -1,15 +1,19 @@ { "version": "1.0.0-*", - "compilationOptions": { + "buildOptions": { "warningsAsErrors": true, "keyFile": "../../tools/Key.snk", - "nowarn": [ "CS1591" ], + "nowarn": [ + "CS1591" + ], "xmlDoc": true }, "description": "ASP.NET Core components for working with the IIS AspNetCoreModule.", - "repository": { + "packOptions": { + "repository": { "type": "git", "url": "git://github.com/aspnet/IISIntegration" + } }, "dependencies": { "Microsoft.AspNetCore.Hosting": "1.0.0-*", @@ -24,7 +28,7 @@ } }, "frameworks": { - "net451": { }, + "net451": {}, "netstandard1.3": { "dependencies": { "System.Security.Principal.Windows": "4.0.0-*" @@ -35,4 +39,4 @@ ] } } -} +} \ No newline at end of file diff --git a/test/Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests/project.json b/test/Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests/project.json index ee3fb780a1..a1984f96ba 100644 --- a/test/Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests/project.json +++ b/test/Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests/project.json @@ -1,31 +1,33 @@ { - "content": [ - "Http.config", - "Https.config", - "NtlmAuthentation.config" - ], - "compilationOptions": { - "warningsAsErrors": true - }, - "dependencies": { - "Microsoft.AspNetCore.Server.Testing": "1.0.0-*", - "Microsoft.Extensions.Logging": "1.0.0-*", - "Microsoft.Extensions.Logging.Console": "1.0.0-*", - "xunit": "2.1.0" - }, - "frameworks": { - "net451": { - "dependencies": { - "xunit.runner.console": "2.1.0" - }, - "frameworkAssemblies": { - "System.Data": "", - "System.Net.Http": "", - "System.Net.Http.WebRequest": "", - "System.Runtime": "", - "System.Xml": "" - } - } - }, - "testRunner": "xunit" -} + "publishOptions": { + "include": [ + "Http.config", + "Https.config", + "NtlmAuthentation.config" + ] + }, + "buildOptions": { + "warningsAsErrors": true + }, + "dependencies": { + "Microsoft.AspNetCore.Server.Testing": "1.0.0-*", + "Microsoft.Extensions.Logging": "1.0.0-*", + "Microsoft.Extensions.Logging.Console": "1.0.0-*", + "xunit": "2.1.0" + }, + "frameworks": { + "net451": { + "dependencies": { + "xunit.runner.console": "2.1.0" + }, + "frameworkAssemblies": { + "System.Data": "", + "System.Net.Http": "", + "System.Net.Http.WebRequest": "", + "System.Runtime": "", + "System.Xml": "" + } + } + }, + "testRunner": "xunit" +} \ No newline at end of file diff --git a/test/Microsoft.AspNetCore.Server.IISIntegration.Tests/project.json b/test/Microsoft.AspNetCore.Server.IISIntegration.Tests/project.json index 34930d2c22..6666e44a66 100644 --- a/test/Microsoft.AspNetCore.Server.IISIntegration.Tests/project.json +++ b/test/Microsoft.AspNetCore.Server.IISIntegration.Tests/project.json @@ -1,6 +1,7 @@ { "version": "1.0.0-*", "dependencies": { + "dotnet-test-xunit": "1.0.0-*", "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*", "Microsoft.AspNetCore.TestHost": "1.0.0-*", "xunit": "2.1.0" @@ -16,7 +17,6 @@ "version": "1.0.0-*", "type": "platform" }, - "dotnet-test-xunit": "1.0.0-*", "System.Diagnostics.Process": "4.1.0-*" } }, diff --git a/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/project.json b/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/project.json index 021cb38e97..cd1cb9d5fb 100644 --- a/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/project.json +++ b/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/project.json @@ -1,5 +1,6 @@ { "dependencies": { + "dotnet-test-xunit": "1.0.0-*", "xunit": "2.1.0", "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-*" }, @@ -11,7 +12,6 @@ "portable-net45+win8" ], "dependencies": { - "dotnet-test-xunit": "1.0.0-*", "System.Diagnostics.Process": "4.1.0-*", "Microsoft.NETCore.App": { "type": "platform", @@ -21,4 +21,4 @@ } }, "testRunner": "xunit" -} +} \ No newline at end of file diff --git a/test/TestSites.Portable/project.json b/test/TestSites.Portable/project.json index c78df25e09..3b426d878d 100644 --- a/test/TestSites.Portable/project.json +++ b/test/TestSites.Portable/project.json @@ -1,14 +1,16 @@ -{ +{ "version": "1.0.0-*", - "compilationOptions": { + "buildOptions": { "emitEntryPoint": true }, "compile": [ "../TestSites/Startup*.cs" ], - "content": [ - "web.config" - ], + "publishOptions": { + "include": [ + "web.config" + ] + }, "dependencies": { "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", @@ -34,4 +36,4 @@ } } } -} +} \ No newline at end of file diff --git a/test/TestSites/project.json b/test/TestSites/project.json index b2dd0fd0b3..57d4323e1b 100644 --- a/test/TestSites/project.json +++ b/test/TestSites/project.json @@ -1,11 +1,13 @@ { "version": "1.0.0-*", - "compilationOptions": { + "buildOptions": { "emitEntryPoint": true }, - "content": [ - "web.config" - ], + "publishOptions": { + "include": [ + "web.config" + ] + }, "dependencies": { "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", @@ -28,14 +30,14 @@ "System.Diagnostics.Process": "4.1.0-*" } }, - "net451": { } + "net451": {} }, "runtimes": { - "win7-x64": { }, - "win7-x86": { }, - "osx.10.10-x64": { }, - "osx.10.11-x64": { }, - "ubuntu.14.04-x64": { }, - "ubuntu.15.04-x64": { } + "win7-x64": {}, + "win7-x86": {}, + "osx.10.10-x64": {}, + "osx.10.11-x64": {}, + "ubuntu.14.04-x64": {}, + "ubuntu.15.04-x64": {} } -} +} \ No newline at end of file