-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
313 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
:: Copyright (c) Microsoft. All rights reserved. | ||
:: Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
:: Get the path to MSBuild.exe and set it to buildtool. | ||
:: Calls to setVsPath.cmd. | ||
|
||
@echo off | ||
|
||
:: Find installed path of Visual Studio 2017 | ||
set buildtool= | ||
|
||
set _currentPath=%~dp0 | ||
call "%_currentPath%setVs2017Path.cmd" | ||
call "%_currentPath%setVsPath.cmd" | ||
if ErrorLevel 1 ( | ||
exit /b 1 | ||
) | ||
|
||
:: Set buildtool | ||
if exist "%vs2017path%\MSBuild\15.0\Bin\MSBuild.exe" ( | ||
set buildtool="%vs2017path%\MSBuild\15.0\Bin\MSBuild.exe" | ||
if not exist "%vspath%\MSBuild" ( | ||
echo Error: could not find MSBuild.exe, please make sure you have installed "C# and Visual Basic Roslyn compilers" in Visual Studio 2017 or later. | ||
exit /b 1 | ||
) | ||
|
||
if not defined buildtool ( | ||
echo No msbuild.exe was found. Please install visual studio 2017. | ||
exit /b 1 | ||
for /d %%i in ("%vspath%\MSBuild\*") do ( | ||
if exist "%%~fi\Bin\MSBuild.exe" ( | ||
set buildtool="%%~fi\Bin\MSBuild.exe" | ||
exit /b 0 | ||
) | ||
) | ||
|
||
exit /b 0 | ||
echo Error: could not find MSBuild.exe, please make sure you have installed "C# and Visual Basic Roslyn compilers" in Visual Studio 2017 or later. | ||
exit /b 1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
:: Copyright (c) Microsoft. All rights reserved. | ||
:: Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
::Get the root path of Visual Studio installation folder and set it to vspath. | ||
|
||
@echo off | ||
|
||
:: Find installed path of Visual Studio 2017 | ||
set _currentPath=%~dp0 | ||
call "%_currentPath%setVs2017Path.cmd" | ||
if ErrorLevel 1 ( | ||
exit /b 1 | ||
set vswhere= | ||
|
||
for /d %%i in ("%ProgramFiles(x86)%","%ProgramFiles%") do ( | ||
if exist "%%~i\Microsoft Visual Studio\Installer\vswhere.exe" ( | ||
set "vswhere=%%~i\Microsoft Visual Studio\Installer\vswhere.exe" | ||
break | ||
) | ||
) | ||
|
||
:: Set VS150COMNTOOLS | ||
if exist "%vs2017path%\Common7\Tools\" ( | ||
set VS150COMNTOOLS="%vs2017path%\Common7\Tools\" | ||
if [vswhere] equ [] ( | ||
echo Error: please make sure you have installed Visual Studio 2017 or later. | ||
exit /b 1 | ||
) | ||
|
||
:: Set vspath | ||
if defined VS150COMNTOOLS ( | ||
set vspath=%VS150COMNTOOLS% | ||
goto end | ||
) else ( | ||
echo Error: Please install visual studio 2017. | ||
exit /b 1 | ||
set vspath= | ||
|
||
for /f "usebackq tokens=1*" %%i in (`"%vswhere%"`) do ( | ||
if %%i equ installationPath: ( | ||
set vspath=%%j | ||
exit /b 0 | ||
) | ||
) | ||
|
||
:end | ||
exit /b 0 | ||
echo Error: please make sure you have installed Visual Studio 2017 or later. | ||
exit /b 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
:: Copyright (c) Microsoft. All rights reserved. | ||
:: Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
:: Get the path to vstest.console.exe and set it to vstest. | ||
:: Calls to setVsPath.cmd. | ||
|
||
@echo off | ||
|
||
set vstest= | ||
|
||
set _currentPath=%~dp0 | ||
call "%_currentPath%setVsPath.cmd" | ||
if ErrorLevel 1 ( | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%vspath%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" ( | ||
echo Error: could not find vstest.console.exe, please make sure you have installed "Testing tools core features" in Visual Studio 2017 or later. | ||
exit /b 1 | ||
) | ||
|
||
set vstest="%vspath%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" | ||
exit /b 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.