Merge pull request #12675 from dotnet/marcpopMSFT-WDarm64targeting50main
Enable targeting 5.0 for arm64
This commit is contained in:
commit
9d1187e909
2 changed files with 23 additions and 8 deletions
|
@ -199,8 +199,8 @@
|
|||
|
||||
<WindowsDesktop30RuntimePackRids Include="win-x64;win-x86" />
|
||||
<WindowsDesktop31RuntimePackRids Include="@(WindowsDesktop30RuntimePackRids)" />
|
||||
<WindowsDesktop50RuntimePackRids Include="@(WindowsDesktop31RuntimePackRids)" />
|
||||
<WindowsDesktopRuntimePackRids Include="@(WindowsDesktop50RuntimePackRids);win-arm64" />
|
||||
<WindowsDesktop50RuntimePackRids Include="@(WindowsDesktop31RuntimePackRids);win-arm64" />
|
||||
<WindowsDesktopRuntimePackRids Include="@(WindowsDesktop50RuntimePackRids)" />
|
||||
</ItemGroup>
|
||||
|
||||
<!--
|
||||
|
|
|
@ -96,13 +96,20 @@ namespace EndToEnd.Tests
|
|||
.Should().Pass().And.HaveStdOutContaining("Hello, World!");
|
||||
}
|
||||
|
||||
[WindowsOnlyFact]
|
||||
public void ItCanPublishArm64Winforms()
|
||||
[WindowsOnlyTheory]
|
||||
[InlineData("net5.0")]
|
||||
[InlineData("current")]
|
||||
public void ItCanPublishArm64Winforms(string TargetFramework)
|
||||
{
|
||||
DirectoryInfo directory = TestAssets.CreateTestDirectory();
|
||||
string projectDirectory = directory.FullName;
|
||||
string TargetFrameworkParameter = "";
|
||||
|
||||
string newArgs = "winforms --no-restore";
|
||||
if (TargetFramework != "current")
|
||||
{
|
||||
TargetFrameworkParameter = $"-f {TargetFramework}";
|
||||
}
|
||||
string newArgs = $"winforms {TargetFrameworkParameter} --no-restore";
|
||||
new NewCommandShim()
|
||||
.WithWorkingDirectory(projectDirectory)
|
||||
.Execute(newArgs)
|
||||
|
@ -122,13 +129,21 @@ namespace EndToEnd.Tests
|
|||
selfContainedPublishDir.Should().HaveFilesMatching($"{directory.Name}.dll", SearchOption.TopDirectoryOnly);
|
||||
}
|
||||
|
||||
[WindowsOnlyFact]
|
||||
public void ItCanPublishArm64Wpf()
|
||||
[WindowsOnlyTheory]
|
||||
[InlineData("net5.0")]
|
||||
[InlineData("current")]
|
||||
public void ItCanPublishArm64Wpf(string TargetFramework)
|
||||
{
|
||||
DirectoryInfo directory = TestAssets.CreateTestDirectory();
|
||||
string projectDirectory = directory.FullName;
|
||||
string TargetFrameworkParameter = "";
|
||||
|
||||
string newArgs = "wpf --no-restore";
|
||||
if (TargetFramework != "current")
|
||||
{
|
||||
TargetFrameworkParameter = $"-f {TargetFramework}";
|
||||
}
|
||||
|
||||
string newArgs = $"wpf {TargetFrameworkParameter} --no-restore";
|
||||
new NewCommandShim()
|
||||
.WithWorkingDirectory(projectDirectory)
|
||||
.Execute(newArgs)
|
||||
|
|
Loading…
Reference in a new issue