Skip to content

Commit facb0f8

Browse files
authored
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
2 parents 13b5403 + 062f359 commit facb0f8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Build/NuGet/Windows.DotNet.Arch/Items.props.mustache

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<ItemGroup>
4-
<Content Include="$(MSBuildThisFileDirectory)..\runtimes\{{runtimeIdentifier}}\native\*.*">
3+
<ItemGroup Condition=" '$(TargetFramework)' == '' Or '$(TargetFramework.TrimEnd(`0123456789`))' == 'net' ">
4+
<Content Include="$(MSBuildThisFileDirectory)..\runtimes\{{runtimeIdentifier}}\native\*.*" Condition=" '$(Platform)' == 'AnyCPU' ">
5+
<Link>{{platformArchitecture}}\%(Filename)%(Extension)</Link>
6+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7+
<Visible>False</Visible>
8+
</Content>
9+
10+
<Content Include="$(MSBuildThisFileDirectory)..\runtimes\{{runtimeIdentifier}}\native\*.*" Condition=" '$(Platform)' == '{{platformArchitecture}}' ">
511
<Link>%(Filename)%(Extension)</Link>
612
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
713
<Visible>False</Visible>

0 commit comments

Comments
 (0)