[XB] Check for generation of .slnx solution for VS
This commit is contained in:
@@ -1935,9 +1935,13 @@ class DevenvCommand(Command):
|
|||||||
"-A", "x64",
|
"-A", "x64",
|
||||||
"-DXENIA_BUILD_TESTS=ON",
|
"-DXENIA_BUILD_TESTS=ON",
|
||||||
])
|
])
|
||||||
sln_path = os.path.join(vs_build_dir, "xenia.sln")
|
# Since VS 2026 default solution extension is slnx.
|
||||||
print(f"Opening {sln_path} in Visual Studio...")
|
slnx_path = os.path.join(vs_build_dir, "xenia.slnx")
|
||||||
shell_call(["devenv", sln_path])
|
if not os.path.exists(slnx_path):
|
||||||
|
slnx_path = os.path.join(vs_build_dir, "xenia.sln")
|
||||||
|
|
||||||
|
print(f"Opening {slnx_path} in Visual Studio...")
|
||||||
|
shell_call(["devenv", slnx_path])
|
||||||
elif has_bin("clion"):
|
elif has_bin("clion"):
|
||||||
shell_call(["clion", "."])
|
shell_call(["clion", "."])
|
||||||
elif has_bin("clion.sh"):
|
elif has_bin("clion.sh"):
|
||||||
|
|||||||
Reference in New Issue
Block a user