From d95c6a2dcc0ffa62f67223f5ef10bbd06c3c69f4 Mon Sep 17 00:00:00 2001 From: Vatsan Madhavan Date: Fri, 17 May 2019 11:58:15 -0700 Subject: [PATCH 1/3] Fix packaging to produce native assemblies under runtimes\\native per spec at https://docs.microsoft.com/en-us/nuget/create-packages/supporting-multiple-target-frameworks --- eng/WpfArcadeSdk/tools/Packaging.targets | 71 ++++++++++++++++-------- 1 file changed, 47 insertions(+), 24 deletions(-) diff --git a/eng/WpfArcadeSdk/tools/Packaging.targets b/eng/WpfArcadeSdk/tools/Packaging.targets index 49dcc63aaa0..2f595a17dc5 100644 --- a/eng/WpfArcadeSdk/tools/Packaging.targets +++ b/eng/WpfArcadeSdk/tools/Packaging.targets @@ -5,6 +5,12 @@ lib + + + runtimes @@ -74,21 +80,20 @@ $(PreparePackageAssetsDependsOn): Returns="@(PackageAsset)" Condition="'$(PackageName)'!=''"> - - $(TargetFramework) + $(LibFolder)\$(TargetFramework)\ - - win-x86 - win-x64 + + runtimes\win-x86\native\ + runtimes\win-x64\native\ + AdditionalMetadata="RelativePath=$(ArtifactsPackagingDir)$(NormalizedPackageName)\$(DestinationSubFolder)" + Condition="'$(DestinationSubFolder)'!='' and '$(IsPackagingProject)'!='true' and '@(PackagingAssemblyContent)'==''"> + AdditionalMetadata="RelativePath=$(ArtifactsPackagingDir)$(NormalizedPackageName)\$(DestinationSubFolder)" + Condition="'$(DestinationSubFolder)'!='' and '$(IsPackagingProject)'!='true' and '@(PackagingAssemblyContent)'==''"> + AdditionalMetadata="RelativePath=$(ArtifactsPackagingDir)$(NormalizedPackageName)\$(DestinationSubFolder)" + Condition="'$(DestinationSubFolder)'!='' and '$(IsPackagingProject)'!='true' and '$(ExcludePdbs)'!='true' and '@(PackagingAssemblyContent)'==''"> + AdditionalMetadata="RelativePath=$(ArtifactsPackagingDir)$(NormalizedPackageName)\ref\$(TargetFramework)" + Condition="'$(DestinationSubFolder)'!='' and '$(IsPackagingProject)'!='true' and '$(ExcludeRefAssemblies)'!='true'"> + AdditionalMetadata="RelativePath=$(ArtifactsPackagingDir)$(NormalizedPackageName)\$(DestinationSubFolder)" + Condition="'$(DestinationSubFolder)'!='' and '$(IsPackagingProject)'!='true' and '@(PackagingAssemblyContent)'!=''"> $(LibFolder) + + true + runtimes + + + + true + runtimes + + + + true + runtimes + + true From 94eaf9818b602bf7f4cf762c230a9708e1c80ed7 Mon Sep 17 00:00:00 2001 From: Vatsan Madhavan Date: Fri, 17 May 2019 12:15:44 -0700 Subject: [PATCH 2/3] 'runtimes' is a constant - doesn't need a property definition. --- eng/WpfArcadeSdk/tools/Packaging.targets | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/WpfArcadeSdk/tools/Packaging.targets b/eng/WpfArcadeSdk/tools/Packaging.targets index 2f595a17dc5..7183ebfb264 100644 --- a/eng/WpfArcadeSdk/tools/Packaging.targets +++ b/eng/WpfArcadeSdk/tools/Packaging.targets @@ -10,7 +10,6 @@ Architecture-specific assembies go under runtimes\\ https://docs.microsoft.com/en-us/nuget/create-packages/supporting-multiple-target-frameworks --> - runtimes From d0c0b7d4536fdc3947ba23da126d334a6a9ca99e Mon Sep 17 00:00:00 2001 From: Vatsan Madhavan Date: Fri, 17 May 2019 12:16:30 -0700 Subject: [PATCH 3/3] Fix typo --- eng/WpfArcadeSdk/tools/Packaging.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/WpfArcadeSdk/tools/Packaging.targets b/eng/WpfArcadeSdk/tools/Packaging.targets index 7183ebfb264..1debe3ec317 100644 --- a/eng/WpfArcadeSdk/tools/Packaging.targets +++ b/eng/WpfArcadeSdk/tools/Packaging.targets @@ -7,7 +7,7 @@ lib