Răsfoiți Sursa

Merge pull request #6680 from Taritsyn/nuget-platform-specific-package-msbuild-scripts

NuGet: Implement in MSBuild scripts of platform-specific packages a same deployment mechanism as in the Microsoft.ChakraCore package
Petr Penzin 4 ani în urmă
părinte
comite
facb0f8471
1 a modificat fișierele cu 8 adăugiri și 2 ștergeri
  1. 8 2
      Build/NuGet/Windows.DotNet.Arch/Items.props.mustache

+ 8 - 2
Build/NuGet/Windows.DotNet.Arch/Items.props.mustache

@@ -1,7 +1,13 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Content Include="$(MSBuildThisFileDirectory)..\runtimes\{{runtimeIdentifier}}\native\*.*">
+  <ItemGroup Condition=" '$(TargetFramework)' == '' Or '$(TargetFramework.TrimEnd(`0123456789`))' == 'net' ">
+    <Content Include="$(MSBuildThisFileDirectory)..\runtimes\{{runtimeIdentifier}}\native\*.*" Condition=" '$(Platform)' == 'AnyCPU' ">
+      <Link>{{platformArchitecture}}\%(Filename)%(Extension)</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      <Visible>False</Visible>
+    </Content>
+
+    <Content Include="$(MSBuildThisFileDirectory)..\runtimes\{{runtimeIdentifier}}\native\*.*" Condition=" '$(Platform)' == '{{platformArchitecture}}' ">
       <Link>%(Filename)%(Extension)</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
       <Visible>False</Visible>