Fix additional tests that need to be manually retargeted at 9 and centralize the current tfm

This commit is contained in:
Marc Paine 2023-09-29 12:53:43 -07:00
parent 6f7b458acc
commit c1b4bc93c3
3 changed files with 18 additions and 4 deletions

View file

@ -12,6 +12,8 @@ namespace EndToEnd
{
public class GivenWindowsApp : TestBase
{
[WindowsOnlyTheory]
[InlineData("10.0.17763.0")]
[InlineData("10.0.18362.0")]
@ -32,6 +34,8 @@ namespace EndToEnd
// Update TargetFramework to the right version of .NET Core
project.Root.Element(ns + "PropertyGroup")
.Add(new XElement(ns + "TargetPlatformVersion", targetPlatformVersion));
project.Root.Element(ns + "PropertyGroup")
.Element(ns + "TargetFramework").Value = TestAssetInfo.currentTfm;
project.Save(projectPath);