Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/NuGet.BuildTasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish Jain <asja@microsoft.com>2016-12-13 04:45:23 +0300
committerAshish Jain <asja@microsoft.com>2016-12-13 23:06:02 +0300
commite44c01772fb06ed8a982e1cfbd26a8337e3becb5 (patch)
treec4a2edf05658e9169832fa9ea46c59aaced3758a
parent4a57a0ef4bee31f122d50a39fe3dddd4ca03fb07 (diff)
Added RuntimeIdentifiers property for non-UAP projects for PackageReference scenarios.
-rw-r--r--src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets b/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets
index 252dd8d..53b500d 100644
--- a/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets
+++ b/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets
@@ -63,6 +63,11 @@ Copyright (c) .NET Foundation. All rights reserved.
<NuGetRuntimeIdentifier Condition="'$(UseDotNetNativeToolchain)' == 'true'">$(_NuGetRuntimeIdentifierWithoutAot)-aot</NuGetRuntimeIdentifier>
</PropertyGroup>
+ <!-- If RuntimeIdentifiers weren't already specified for non-UAP projects, then generate it -->
+ <PropertyGroup Condition="'$(BaseNuGetRuntimeIdentifier)' == 'win' and '$(NuGetRuntimeIdentifier)' != '' and '$(RuntimeIdentifiers)' == '' and '$(RuntimeIdentifier)' == ''">
+ <RuntimeIdentifiers>win;win-x86;win-x64</RuntimeIdentifiers>
+ </PropertyGroup>
+
<ItemGroup>
<!-- If we are resolving from project.lock.json, we need to consider any edit to it as something that forces a rebuild -->
<CustomAdditionalCompileInputs Include="$(ProjectLockFile)" Condition="'$(ResolveNuGetPackages)' == 'true' and Exists('$(ProjectLockFile)')" />