Mark ARM64 as a valid platform for WPF and WinForms and fix support bug
Co-authored-by: Alexandre Zollinger Chohfi <alzollin@microsoft.com> Co-authored-by: Marcpems <marcpe@microsoft.com> Co-authored-by: Ryland <41491307+ryalanms@users.noreply.github.com>
This commit is contained in:
parent
84e0539a19
commit
7fbfea47cc
2 changed files with 13 additions and 8 deletions
|
@ -121,10 +121,7 @@
|
||||||
<WindowsDesktop30RuntimePackRids Include="win-x64;win-x86" />
|
<WindowsDesktop30RuntimePackRids Include="win-x64;win-x86" />
|
||||||
<WindowsDesktop31RuntimePackRids Include="@(WindowsDesktop30RuntimePackRids)" />
|
<WindowsDesktop31RuntimePackRids Include="@(WindowsDesktop30RuntimePackRids)" />
|
||||||
<WindowsDesktop50RuntimePackRids Include="@(WindowsDesktop31RuntimePackRids)" />
|
<WindowsDesktop50RuntimePackRids Include="@(WindowsDesktop31RuntimePackRids)" />
|
||||||
<WindowsDesktopRuntimePackRids Include="@(WindowsDesktop50RuntimePackRids)" />
|
<WindowsDesktopRuntimePackRids Include="@(WindowsDesktop50RuntimePackRids);win-arm64" />
|
||||||
<!-- TODO: remove this once WPF is available on ARM64 and replace usage
|
|
||||||
of this group for WindowsDesktopRuntimePackRids. -->
|
|
||||||
<WindowsDesktopRuntimePackWinformsRids Include="@(WindowsDesktopRuntimePackRids);win-arm64" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -280,7 +277,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
TargetingPackName="Microsoft.WindowsDesktop.App.Ref"
|
TargetingPackName="Microsoft.WindowsDesktop.App.Ref"
|
||||||
TargetingPackVersion="$(MicrosoftWindowsDesktopAppRefPackageVersion)"
|
TargetingPackVersion="$(MicrosoftWindowsDesktopAppRefPackageVersion)"
|
||||||
RuntimePackNamePatterns="Microsoft.WindowsDesktop.App.Runtime.**RID**"
|
RuntimePackNamePatterns="Microsoft.WindowsDesktop.App.Runtime.**RID**"
|
||||||
RuntimePackRuntimeIdentifiers="@(WindowsDesktopRuntimePackWinformsRids, '%3B')"
|
RuntimePackRuntimeIdentifiers="@(WindowsDesktopRuntimePackRids, '%3B')"
|
||||||
IsWindowsOnly="true"
|
IsWindowsOnly="true"
|
||||||
Profile="WindowsForms"
|
Profile="WindowsForms"
|
||||||
/>
|
/>
|
||||||
|
@ -395,7 +392,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
TargetingPackName="Microsoft.WindowsDesktop.App.Ref"
|
TargetingPackName="Microsoft.WindowsDesktop.App.Ref"
|
||||||
TargetingPackVersion="$(_WindowsDesktop50TargetingPackVersion)"
|
TargetingPackVersion="$(_WindowsDesktop50TargetingPackVersion)"
|
||||||
RuntimePackNamePatterns="Microsoft.WindowsDesktop.App.Runtime.**RID**"
|
RuntimePackNamePatterns="Microsoft.WindowsDesktop.App.Runtime.**RID**"
|
||||||
RuntimePackRuntimeIdentifiers="@(WindowsDesktopRuntimePackWinformsRids, '%3B')"
|
RuntimePackRuntimeIdentifiers="@(WindowsDesktop50RuntimePackRids, '%3B')"
|
||||||
IsWindowsOnly="true"
|
IsWindowsOnly="true"
|
||||||
Profile="WindowsForms"
|
Profile="WindowsForms"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -129,7 +129,7 @@ namespace EndToEnd.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
[WindowsOnlyFact]
|
[WindowsOnlyFact]
|
||||||
public void ItCantPublishArm64Wpf()
|
public void ItCanPublishArm64Wpf()
|
||||||
{
|
{
|
||||||
DirectoryInfo directory = TestAssets.CreateTestDirectory();
|
DirectoryInfo directory = TestAssets.CreateTestDirectory();
|
||||||
string projectDirectory = directory.FullName;
|
string projectDirectory = directory.FullName;
|
||||||
|
@ -144,7 +144,15 @@ namespace EndToEnd.Tests
|
||||||
new PublishCommand()
|
new PublishCommand()
|
||||||
.WithWorkingDirectory(projectDirectory)
|
.WithWorkingDirectory(projectDirectory)
|
||||||
.Execute(publishArgs)
|
.Execute(publishArgs)
|
||||||
.Should().Fail();
|
.Should().Pass();
|
||||||
|
|
||||||
|
var selfContainedPublishDir = new DirectoryInfo(projectDirectory)
|
||||||
|
.Sub("bin").Sub("Debug").GetDirectories().FirstOrDefault()
|
||||||
|
.Sub("win-arm64").Sub("publish");
|
||||||
|
|
||||||
|
selfContainedPublishDir.Should().HaveFilesMatching("PresentationCore.dll", SearchOption.TopDirectoryOnly);
|
||||||
|
selfContainedPublishDir.Should().HaveFilesMatching("PresentationNative_*.dll", SearchOption.TopDirectoryOnly);
|
||||||
|
selfContainedPublishDir.Should().HaveFilesMatching($"{directory.Name}.dll", SearchOption.TopDirectoryOnly);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
|
|
Loading…
Reference in a new issue