From cdecb7091538b82c9088e635322ab5c59015c39c Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sat, 14 May 2016 16:42:29 +1200 Subject: [PATCH] -Build --- Build/build.ps1 | 2 +- Src/Newtonsoft.Json.Tests/project.json | 4 +-- Src/Newtonsoft.Json/project.json | 36 +++++++++++++++++--------- 3 files changed, 26 insertions(+), 16 deletions(-) diff --git a/Build/build.ps1 b/Build/build.ps1 index bf1f84f3..722c7be1 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -350,7 +350,7 @@ function Update-Project { $json = (Get-Content $projectPath) -join "`n" | ConvertFrom-Json $options = @{"warningsAsErrors" = $true; "xmlDoc" = $true; "keyFile" = $file; "define" = ((GetConstants "dotnet" $sign) -split ";") } - Add-Member -InputObject $json -MemberType NoteProperty -Name "compilationOptions" -Value $options -Force + Add-Member -InputObject $json -MemberType NoteProperty -Name "buildOptions" -Value $options -Force $json.version = GetNuGetVersion diff --git a/Src/Newtonsoft.Json.Tests/project.json b/Src/Newtonsoft.Json.Tests/project.json index 581b3586..f47c2665 100644 --- a/Src/Newtonsoft.Json.Tests/project.json +++ b/Src/Newtonsoft.Json.Tests/project.json @@ -1,7 +1,5 @@ { "version": "1.0.0-*", - "exclude": [ - ], "dependencies": { "Newtonsoft.Json": { "target": "project" @@ -85,7 +83,7 @@ } },*/ "netcoreapp1.0": { - "compilationOptions": { + "buildOptions": { "define": [ "NETSTANDARD10", "DNXCORE50", "PORTABLE" ] }, "dependencies": { diff --git a/Src/Newtonsoft.Json/project.json b/Src/Newtonsoft.Json/project.json index b9a9e4b0..e8b2eb0f 100644 --- a/Src/Newtonsoft.Json/project.json +++ b/Src/Newtonsoft.Json/project.json @@ -2,13 +2,18 @@ "version": "1.0.0-*", "title": "Json.NET", "description": "Json.NET is a popular high-performance JSON framework for .NET", - "authors": [ "James Newton-King" ], - "tags": [ "json" ], - "projectUrl": "http://www.newtonsoft.com/json", - "licenseUrl": "https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md", - "iconUrl": "http://www.newtonsoft.com/content/images/nugeticon.png", "language": "en-US", - + "authors": [ "James Newton-King" ], + "packOptions": { + "projectUrl": "http://www.newtonsoft.com/json", + "tags": [ "json" ], + "licenseUrl": "https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md", + "iconUrl": "http://www.newtonsoft.com/content/images/nugeticon.png", + "repository": { + "type": "git", + "url": "git://github.com/JamesNK/Newtonsoft.Json" + } + }, "frameworks": { "net45": { "frameworkAssemblies": { @@ -44,8 +49,10 @@ } }, ".NETPortable,Version=v4.5,Profile=Profile259": { - "compilationOptions": { - "define": [ "PORTABLE" ] + "buildOptions": { + "define": [ + "PORTABLE" + ] }, "frameworkAssemblies": { "Microsoft.CSharp": "", @@ -78,8 +85,10 @@ } }, ".NETPortable,Version=v4.0,Profile=Profile328": { - "compilationOptions": { - "define": [ "PORTABLE40" ] + "buildOptions": { + "define": [ + "PORTABLE40" + ] }, "frameworkAssemblies": { "mscorlib": "", @@ -90,8 +99,11 @@ } }, "netstandard1.0": { - "compilationOptions": { - "define": [ "NETSTANDARD10", "PORTABLE" ] + "buildOptions": { + "define": [ + "NETSTANDARD10", + "PORTABLE" + ] }, "dependencies": { "Microsoft.CSharp": "4.0.1-rc2-24027",