-
Notifications
You must be signed in to change notification settings - Fork 431
Expand file tree
/
Copy pathMicrosoft.WindowsAppSDK.Arm64Ec.targets
More file actions
32 lines (28 loc) · 1.83 KB
/
Microsoft.WindowsAppSDK.Arm64Ec.targets
File metadata and controls
32 lines (28 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!--
Copyright (c) Microsoft Corporation. Licensed under the MIT License
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="ValidateArm64EcConfiguration;WebView2Arm64EcWorkaround">
<Target Name="ValidateArm64EcConfiguration" Condition="'$(ValidateArm64EcConfiguration)'!='false' and ('$(OutputType)'=='Exe' or '$(OutputType)'=='WinExe' or '$(OutputType)'=='Package')">
<Error Condition="'$(WindowsAppSdkSelfContained)'!='true' or '$(WindowsPackageType)'!='None'"
Text="Windows App SDK Arm64EC support currently requires WindowsAppSdkSelfContained=true and WindowsPackageType=None" />
</Target>
<!-- TEMPORARY: Work around WebView2 not supporting arm64ec, when WinAppSDK targets is imported before WebView2 targets -->
<ItemDefinitionGroup Condition="'$(EffectivePlatform)'=='arm64ec'">
<Link>
<AdditionalLibraryDirectories>$(WV2WinRTPath)..\..\build\native\x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<Target Name="WebView2Arm64EcWorkaround" Condition="'$(EffectivePlatform)'=='arm64ec'">
<PropertyGroup>
<WebView2BuildRoot>$([MSBuild]::NormalizePath($(WV2WinRTPath), "..\..\build\"))</WebView2BuildRoot>
</PropertyGroup>
<ItemGroup>
<ReferenceCopyLocalPaths Remove="$(WebView2BuildRoot)..\runtimes\win-arm64ec\native_uap\Microsoft.Web.WebView2.Core.dll"/>
<ReferenceCopyLocalPaths Include="$(WebView2BuildRoot)..\runtimes\win-x64\native_uap\Microsoft.Web.WebView2.Core.dll"/>
</ItemGroup>
</Target>
<!-- TEMPORARY: Work around WebView2 not supporting arm64ec, when WinAppSDK targets is imported after WebView2 targets -->
<PropertyGroup>
<EffectivePlatform>x64</EffectivePlatform>
</PropertyGroup>
</Project>