diff options
author | Ankit Jain <ankit.jain@xamarin.com> | 2017-09-08 09:16:46 +0300 |
---|---|---|
committer | Ankit Jain <ankit.jain@xamarin.com> | 2017-09-08 09:22:18 +0300 |
commit | 104b1ce980bd6d69973a3d340392710548bac2f4 (patch) | |
tree | 5f97e48a046e2ee1f1146e9f4ef9ff19a20ff0f7 | |
parent | 9e04cc7f41899c880807d1d055a24c768670784a (diff) | |
parent | 18aedb7eb0fc26012246af61e4df7cda4ab10026 (diff) |
Merge remote-tracking branch 'origin/dev' into mono/dev
Update to track upstream and match VS 15.4
https://github.com/NuGet/NuGet.BuildTasks/pull/37#issuecomment-327855545
4 files changed, 15 insertions, 9 deletions
diff --git a/src/Microsoft.NuGet.Build.Tasks.Tests/Json/LockFileWithWithSpecifiedPackageFolders.json b/src/Microsoft.NuGet.Build.Tasks.Tests/Json/LockFileWithWithSpecifiedPackageFolders.json index 6df6a2a..b523b70 100644 --- a/src/Microsoft.NuGet.Build.Tasks.Tests/Json/LockFileWithWithSpecifiedPackageFolders.json +++ b/src/Microsoft.NuGet.Build.Tasks.Tests/Json/LockFileWithWithSpecifiedPackageFolders.json @@ -3,7 +3,7 @@ "version": 2, "targets": { ".NETFramework,Version=v4.5": { - "Newtonsoft.Json/8.0.3": { + "Newtonsoft.Json/9.0.1": { "type": "package", "compile": { "lib/net45/Newtonsoft.Json.dll": {} @@ -15,10 +15,10 @@ } }, "libraries": { - "Newtonsoft.Json/8.0.3": { + "Newtonsoft.Json/9.0.1": { "sha512": "KGsYQdS2zLH+H8x2cZaSI7e+YZ4SFIbyy1YJQYl6GYBWjf5o4H1A68nxyq+WTyVSOJQ4GqS/DiPE+UseUizgMg==", "type": "package", - "path": "newtonsoft.json/8.0.3", + "path": "newtonsoft.json/current", "files": [ "lib/net20/Newtonsoft.Json.dll", "lib/net20/Newtonsoft.Json.xml", @@ -32,7 +32,7 @@ "lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.xml", "lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll", "lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.xml", - "newtonsoft.json.8.0.3.nupkg.sha512", + "newtonsoft.json.9.0.1.nupkg.sha512", "newtonsoft.json.nuspec", "tools/install.ps1" ] diff --git a/src/Microsoft.NuGet.Build.Tasks.Tests/Json/MultipleProjectFileDependencyGroups.json b/src/Microsoft.NuGet.Build.Tasks.Tests/Json/MultipleProjectFileDependencyGroups.json index aced1ce..1c1f2df 100644 --- a/src/Microsoft.NuGet.Build.Tasks.Tests/Json/MultipleProjectFileDependencyGroups.json +++ b/src/Microsoft.NuGet.Build.Tasks.Tests/Json/MultipleProjectFileDependencyGroups.json @@ -3,7 +3,7 @@ "version": 2, "targets": { ".NETFramework,Version=v4.5": { - "Newtonsoft.Json/8.0.3": { + "Newtonsoft.Json/9.0.1": { "type": "package", "compile": { "lib/net45/Newtonsoft.Json.dll": {} @@ -31,10 +31,10 @@ } }, "libraries": { - "Newtonsoft.Json/8.0.3": { + "Newtonsoft.Json/9.0.1": { "sha512": "KGsYQdS2zLH+H8x2cZaSI7e+YZ4SFIbyy1YJQYl6GYBWjf5o4H1A68nxyq+WTyVSOJQ4GqS/DiPE+UseUizgMg==", "type": "package", - "path": "newtonsoft.json/8.0.3", + "path": "newtonsoft.json/current", "files": [ "lib/net20/Newtonsoft.Json.dll", "lib/net20/Newtonsoft.Json.xml", @@ -48,7 +48,7 @@ "lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.xml", "lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll", "lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.xml", - "newtonsoft.json.8.0.3.nupkg.sha512", + "newtonsoft.json.9.0.1.nupkg.sha512", "newtonsoft.json.nuspec", "tools/install.ps1" ] diff --git a/src/Microsoft.NuGet.Build.Tasks.Tests/PackageFolderTests.cs b/src/Microsoft.NuGet.Build.Tasks.Tests/PackageFolderTests.cs index d8ef819..145e469 100644 --- a/src/Microsoft.NuGet.Build.Tasks.Tests/PackageFolderTests.cs +++ b/src/Microsoft.NuGet.Build.Tasks.Tests/PackageFolderTests.cs @@ -18,7 +18,7 @@ namespace Microsoft.NuGet.Build.Tasks.Tests runtimeIdentifier: null, createTemporaryFolderForPackages: false); - Assert.Equal(@"C:\PackageFolder\Newtonsoft.Json\8.0.3\lib\net45\Newtonsoft.Json.dll", result.References.Single().ItemSpec); + Assert.Equal(@"C:\PackageFolder\newtonsoft.json\8.0.3\lib\net45\Newtonsoft.Json.dll", result.References.Single().ItemSpec); } } } diff --git a/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets b/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets index 63446ae..666a298 100644 --- a/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets +++ b/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets @@ -70,6 +70,12 @@ Copyright (c) .NET Foundation. All rights reserved. <PropertyGroup> <ResolveNuGetPackages Condition="'$(ResolveNuGetPackages)' == '' and '$(MSBuildProjectExtension)' != '.xproj'">true</ResolveNuGetPackages> + <!-- + if BaseNuGetRuntimeIdentifier is defined then simply use it as RuntimeIdentifier, otherwise + we'll set RuntimeIdentifiers to default value later on. + --> + <RuntimeIdentifier Condition="'$(BaseNuGetRuntimeIdentifier)' != ''">$(BaseNuGetRuntimeIdentifier)</RuntimeIdentifier> + <BaseNuGetRuntimeIdentifier Condition="'$(BaseNuGetRuntimeIdentifier)' == '' and '$(TargetPlatformIdentifier)' == 'UAP'">win10</BaseNuGetRuntimeIdentifier> <BaseNuGetRuntimeIdentifier Condition="'$(BaseNuGetRuntimeIdentifier)' == ''">win</BaseNuGetRuntimeIdentifier> |