Skip to content

Commit

Permalink
Fix failing tests because of "UseUwpTools" property (#44859)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpopMSFT authored Nov 14, 2024
2 parents 38dd756 + 97e8330 commit b13ae8a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ public void ItWarnsWhenBuildingAProjectWithUseUwpProperty()
TargetFrameworks = "net9.0-windows10.0.22621.0"
};
testProject.AdditionalProperties["UseUwp"] = "true";
testProject.AdditionalProperties["UseUwpTools"] = "false";

var testAsset = _testAssetsManager.CreateTestProject(testProject);

Expand All @@ -484,6 +485,7 @@ public void ItErrorsWhenTargetingBelowNet6WithUseUwpProperty()
TargetFrameworks = "netstandard2.0"
};
testProject.AdditionalProperties["UseUwp"] = "true";
testProject.AdditionalProperties["UseUwpTools"] = "false";

var testAsset = _testAssetsManager.CreateTestProject(testProject);

Expand All @@ -505,6 +507,7 @@ public void ItErrorsWhenTransitivelyReferencingWindowsUIXamlReferencesWithoutUse
TargetFrameworks = "net9.0-windows10.0.22621.0"
};
testProjectA.AdditionalProperties["UseUwp"] = "true";
testProjectA.AdditionalProperties["UseUwpTools"] = "false";

TestProject testProjectB = new()
{
Expand Down Expand Up @@ -579,6 +582,7 @@ public void ItBuildsWhenReferencingWindowsUIXamlTypesWithUseUwpProperty()
}
};
testProject.AdditionalProperties["UseUwp"] = "true";
testProject.AdditionalProperties["UseUwpTools"] = "false";

// Temporary until new projections flow to tests
testProject.AdditionalProperties["WindowsSdkPackageVersion"] = "10.0.22621.39";
Expand Down

0 comments on commit b13ae8a

Please sign in to comment.