[xenia-build] Update old link and fix VS Preview not being found

-prerelease allows preview/prerelease versions of VS to work in xb.
https://github.com/microsoft/vswhere/issues/185#issuecomment-499962802
This commit is contained in:
Margen67 2019-06-24 20:32:12 -07:00 committed by Dr. Chat
parent b38dfca482
commit d9ace8a923
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ def main():
if vs_version is None:
print('ERROR: Visual Studio not found!')
print('Please refer to the building guide:')
print('https://github.com/benvanik/xenia/blob/master/docs/building.md')
print('https://github.com/xenia-project/xenia/blob/master/docs/building.md')
sys.exit(1)
# Setup main argument parser and common arguments.
@ -96,7 +96,7 @@ def import_vs_environment():
install_path = None
env_tool_args = None
vswhere = subprocess.check_output('third_party/vswhere/vswhere.exe -version "[15,)" -latest -format json -utf8', shell=False, universal_newlines=True)
vswhere = subprocess.check_output('third_party/vswhere/vswhere.exe -version "[15,)" -latest -prerelease -format json -utf8', shell=False, universal_newlines=True)
if vswhere:
vswhere = json.loads(vswhere)
if vswhere and len(vswhere) > 0: