-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from zooba/test-targets
Adds script to deploy test targets.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@setlocal | ||
@echo off | ||
rem | ||
rem The test targets files redirect projects to use the targets deployed | ||
rem to the Experimental hive. By installing these targets, you can test | ||
rem modifications easily without having to manually redeploy files to | ||
rem your MSBuild directory. | ||
rem | ||
rem This script should be run as an administrator. | ||
rem | ||
|
||
echo This script should be run as an administrator. | ||
|
||
set D=%~dp0 | ||
|
||
call :docopy "%ProgramFiles(x86)%\MSBuild\Microsoft\VisualStudio\v14.0" | ||
call :docopy "%ProgramFiles(x86)%\MSBuild\Microsoft\VisualStudio\v12.0" | ||
|
||
pause | ||
exit /B 0 | ||
|
||
:docopy | ||
|
||
set TARGET=%~1\Python Tools\ | ||
|
||
if not exist "%~1" exit /B 0 | ||
|
||
pushd "%D%..\Product\BuildTasks\TestTargets" | ||
echo. | ||
echo Copying: | ||
echo from %CD% | ||
echo to %TARGET% | ||
if not exist "%TARGET%" mkdir "%TARGET%" | ||
copy /Y "*.targets" "%TARGET%" | ||
popd | ||
|
||
exit /B 0 |