Skip to content

Commit

Permalink
-Build
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed May 14, 2016
1 parent 73dd434 commit cdecb70
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions Src/Newtonsoft.Json.Tests/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"version": "1.0.0-*",
"exclude": [
],
"dependencies": {
"Newtonsoft.Json": {
"target": "project"
Expand Down Expand Up @@ -85,7 +83,7 @@
}
},*/
"netcoreapp1.0": {
"compilationOptions": {
"buildOptions": {
"define": [ "NETSTANDARD10", "DNXCORE50", "PORTABLE" ]
},
"dependencies": {
Expand Down
36 changes: 24 additions & 12 deletions Src/Newtonsoft.Json/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -44,8 +49,10 @@
}
},
".NETPortable,Version=v4.5,Profile=Profile259": {
"compilationOptions": {
"define": [ "PORTABLE" ]
"buildOptions": {
"define": [
"PORTABLE"
]
},
"frameworkAssemblies": {
"Microsoft.CSharp": "",
Expand Down Expand Up @@ -78,8 +85,10 @@
}
},
".NETPortable,Version=v4.0,Profile=Profile328": {
"compilationOptions": {
"define": [ "PORTABLE40" ]
"buildOptions": {
"define": [
"PORTABLE40"
]
},
"frameworkAssemblies": {
"mscorlib": "",
Expand All @@ -90,8 +99,11 @@
}
},
"netstandard1.0": {
"compilationOptions": {
"define": [ "NETSTANDARD10", "PORTABLE" ]
"buildOptions": {
"define": [
"NETSTANDARD10",
"PORTABLE"
]
},
"dependencies": {
"Microsoft.CSharp": "4.0.1-rc2-24027",
Expand Down

0 comments on commit cdecb70

Please sign in to comment.