Skip to content

Commit

Permalink
Add support for locating VS2022 (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
spbrogan authored Jan 13, 2022
1 parent aae1568 commit e1ac46d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion edk2toollib/windows/locate_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# Supported Versions that can be queried with vswhere
# Use lower case for key as all comparisons will be lower case
#
supported_vs_versions = {"vs2017": "15.0,16.0", "vs2019": "16.0,17.0"}
supported_vs_versions = {"vs2017": "15.0,16.0", "vs2019": "16.0,17.0", "vs2022": "17.0,18.0"}


# Downloads VSWhere
Expand Down
6 changes: 6 additions & 0 deletions edk2toollib/windows/locate_tools_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ def test_FindwithVsWhereVs2019(self):
self.assertEqual(ret, 0, "Return code should be zero")
# not checking the result as no need to depend on machine state

@unittest.skipUnless(sys.platform.startswith("win"), "requires Windows")
def test_FindwithVsWhereVs2022(self):
ret, star_prod = locate_tools.FindWithVsWhere(vs_version="vs2022")
self.assertEqual(ret, 0, "Return code should be zero")
# not checking the result as no need to depend on machine state

@unittest.skipUnless(sys.platform.startswith("win"), "requires Windows")
def test_FindWithVsWhereVs2015(self):
ret, star_prod = locate_tools.FindWithVsWhere(vs_version="vs2015")
Expand Down

0 comments on commit e1ac46d

Please sign in to comment.