Revert "Add arm64 as a possible WinForms arch (#7457)"
This reverts commitf1564ea07f
, reversing changes made to0adcdc972a
.
This commit is contained in:
parent
c6a2e47c88
commit
a3fc14fd2e
3 changed files with 2 additions and 51 deletions
|
@ -113,9 +113,6 @@
|
||||||
<WindowsDesktop30RuntimePackRids Include="win-x64;win-x86" />
|
<WindowsDesktop30RuntimePackRids Include="win-x64;win-x86" />
|
||||||
<WindowsDesktop31RuntimePackRids Include="@(WindowsDesktop30RuntimePackRids)" />
|
<WindowsDesktop31RuntimePackRids Include="@(WindowsDesktop30RuntimePackRids)" />
|
||||||
<WindowsDesktopRuntimePackRids Include="@(WindowsDesktop31RuntimePackRids)" />
|
<WindowsDesktopRuntimePackRids Include="@(WindowsDesktop31RuntimePackRids)" />
|
||||||
<!-- TODO: remove this once WPF is available on ARM64 and replace usage
|
|
||||||
of this group for WindowsDesktopRuntimePackRids. -->
|
|
||||||
<WindowsDesktopRuntimePackWinformsRids Include="@(WindowsDesktopRuntimePackRids);win-arm64" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -264,7 +261,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"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -283,7 +283,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IncludeWpfAndWinForms Condition=" '$(IncludeWpfAndWinForms)' == '' AND '$(Architecture)' == 'arm'">false</IncludeWpfAndWinForms>
|
<IncludeWpfAndWinForms Condition=" '$(IncludeWpfAndWinForms)' == '' AND '$(Architecture)' == 'arm'">false</IncludeWpfAndWinForms>
|
||||||
<IncludeWpfAndWinForms Condition=" '$(IncludeWpfAndWinForms)' == '' AND '$(OS)' == 'Windows_NT'">true</IncludeWpfAndWinForms>
|
<IncludeWpfAndWinForms Condition=" '$(IncludeWpfAndWinForms)' == '' AND '$(OS)' == 'Windows_NT' AND '$(Architecture)' != 'arm64' ">true</IncludeWpfAndWinForms>
|
||||||
<IncludeWpfAndWinForms Condition=" '$(IncludeWpfAndWinForms)' == '' ">false</IncludeWpfAndWinForms>
|
<IncludeWpfAndWinForms Condition=" '$(IncludeWpfAndWinForms)' == '' ">false</IncludeWpfAndWinForms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
using Microsoft.DotNet.TestFramework;
|
using Microsoft.DotNet.TestFramework;
|
||||||
|
@ -83,51 +82,6 @@ namespace EndToEnd.Tests
|
||||||
.Should().Pass().And.HaveStdOutContaining("Hello World!");
|
.Should().Pass().And.HaveStdOutContaining("Hello World!");
|
||||||
}
|
}
|
||||||
|
|
||||||
[WindowsOnlyFact]
|
|
||||||
public void ItCanPublishArm64Winforms()
|
|
||||||
{
|
|
||||||
DirectoryInfo directory = TestAssets.CreateTestDirectory();
|
|
||||||
string projectDirectory = directory.FullName;
|
|
||||||
|
|
||||||
string newArgs = "winforms --no-restore";
|
|
||||||
new NewCommandShim()
|
|
||||||
.WithWorkingDirectory(projectDirectory)
|
|
||||||
.Execute(newArgs)
|
|
||||||
.Should().Pass();
|
|
||||||
|
|
||||||
string publishArgs="-r win-arm64";
|
|
||||||
new PublishCommand()
|
|
||||||
.WithWorkingDirectory(projectDirectory)
|
|
||||||
.Execute(publishArgs)
|
|
||||||
.Should().Pass();
|
|
||||||
|
|
||||||
var selfContainedPublishDir = new DirectoryInfo(projectDirectory)
|
|
||||||
.Sub("bin").Sub("Debug").GetDirectories().FirstOrDefault()
|
|
||||||
.Sub("win-arm64").Sub("publish");
|
|
||||||
|
|
||||||
selfContainedPublishDir.Should().HaveFilesMatching("System.Windows.Forms.dll", SearchOption.TopDirectoryOnly);
|
|
||||||
selfContainedPublishDir.Should().HaveFilesMatching($"{directory.Name}.dll", SearchOption.TopDirectoryOnly);
|
|
||||||
}
|
|
||||||
|
|
||||||
[WindowsOnlyFact]
|
|
||||||
public void ItCantPublishArm64Wpf()
|
|
||||||
{
|
|
||||||
DirectoryInfo directory = TestAssets.CreateTestDirectory();
|
|
||||||
string projectDirectory = directory.FullName;
|
|
||||||
|
|
||||||
string newArgs = "wpf --no-restore";
|
|
||||||
new NewCommandShim()
|
|
||||||
.WithWorkingDirectory(projectDirectory)
|
|
||||||
.Execute(newArgs)
|
|
||||||
.Should().Pass();
|
|
||||||
|
|
||||||
string publishArgs="-r win-arm64";
|
|
||||||
new PublishCommand()
|
|
||||||
.WithWorkingDirectory(projectDirectory)
|
|
||||||
.Execute(publishArgs)
|
|
||||||
.Should().Fail();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
[InlineData("console")]
|
[InlineData("console")]
|
||||||
[InlineData("classlib")]
|
[InlineData("classlib")]
|
||||||
|
|
Loading…
Add table
Reference in a new issue