Add UpdateVS.cmd script to build output.

This commit is contained in:
Andrew Arnott 2015-02-17 21:59:34 -08:00
Родитель 57ff2be5fe
Коммит 847a602559
2 изменённых файлов: 42 добавлений и 0 удалений

Просмотреть файл

@ -57,5 +57,20 @@
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\Razzle\src\Tools\RunMeElevated.cmd">
<Link>UpdateVS\RunMeElevated.cmd</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="UpdateVS\UpdateVS.cmd">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Content Include="..\..\Razzle\src\Tools\Elevate.exe">
<Link>UpdateVS\Elevate.exe</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.targets))\EnlistmentInfo.targets" Condition=" '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.targets))' != '' " />
</Project>

Просмотреть файл

@ -0,0 +1,27 @@
@if "%_echo%"=="" echo off
CALL "%~dp0RunMeElevated.cmd" %0 %*
IF %ERRORLEVEL%==200 EXIT /B
:: Set up environment for this script.
setlocal
set SysProgramFiles=%ProgramFiles%
if NOT "%ProgramFiles(x86)%"=="" (
set "SysProgramFiles=%ProgramFiles(x86)%"
)
set Common7=%SysProgramFiles%\Microsoft Visual Studio 14.0\Common7
set Common7Tools=%Common7%\Tools
set CommonIDE=%Common7%\IDE
set PrivateAssemblies=%CommonIDE%\PrivateAssemblies
set PublicAssemblies=%CommonIDE%\PublicAssemblies
if /I "%ROBOCOPY%"=="" SET ROBOCOPY=robocopy /NJH /NJS /NDL /XX /W:1
@ECHO Copying files into Program Files locations
%ROBOCOPY% "%~dp0.." "%PrivateAssemblies%" Microsoft.VisualStudio.Validation.???
@ECHO Invalidating MEF cache...
for %%i in (devenv VSWinExpress) do (
IF EXIST "%COMMONIDE%\%%i.exe" "%COMMONIDE%\%%i.exe" /updateConfiguration
)
exit /b 0