From 4d5f43ec1c9c1d5f45c9cc92c4e7319d14f493b3 Mon Sep 17 00:00:00 2001 From: Ian Blaauw Date: Wed, 8 Sep 2021 14:44:56 +0000 Subject: [PATCH] Merged PR 16988: Fix AnyCPU compilation Previously the projection project was converted over to not use AnyCPU anymore. This was because there's a bug where the WindowsAppSdk bootstrap dll tries to deploy an AnyCPU version (which doesn't exist) and fails. Not using AnyCPU causes issues down the line with adding more tests, so this change restores back to using AnyCPU. But it also addresses the bootstrap dll bug more directly, and works around it to deploy x86. --- Win2D.proj | 6 +----- build/WindowsAppSdk.BootstrapFix.targets | 18 ++++++++++++++++++ build/nuget/Microsoft.Graphics.Win2D.nuspec | 2 +- runbuild.ps1 | 2 +- .../winrt.projection.net5.csproj | 6 ++++-- 5 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 build/WindowsAppSdk.BootstrapFix.targets diff --git a/Win2D.proj b/Win2D.proj index 9858f11d..8da2d987 100644 --- a/Win2D.proj +++ b/Win2D.proj @@ -42,11 +42,7 @@ - - - - Windows - + diff --git a/build/WindowsAppSdk.BootstrapFix.targets b/build/WindowsAppSdk.BootstrapFix.targets new file mode 100644 index 00000000..dc905032 --- /dev/null +++ b/build/WindowsAppSdk.BootstrapFix.targets @@ -0,0 +1,18 @@ + + + + + + <_TempWindowsAppSdkPlatform>$(_WindowsAppSDKFoundationPlatform) + <_WindowsAppSDKFoundationPlatform>x86 + + + + + + <_WindowsAppSDKFoundationPlatform>$(_TempWindowsAppSdkPlatform) + + + + diff --git a/build/nuget/Microsoft.Graphics.Win2D.nuspec b/build/nuget/Microsoft.Graphics.Win2D.nuspec index 60386577..499d7fc4 100644 --- a/build/nuget/Microsoft.Graphics.Win2D.nuspec +++ b/build/nuget/Microsoft.Graphics.Win2D.nuspec @@ -36,7 +36,7 @@ - + - x86;x64;arm64 + AnyCPU @@ -39,4 +38,7 @@ 10.0.18362.18 + + +