-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUpdateLibLeMPAndReinstall.bat
34 lines (29 loc) · 1.18 KB
/
UpdateLibLeMPAndReinstall.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
REM This script builds the extension (vsix file) for Visual Studio 2017,
REM copies it to Lib/LeMP and then starts the vsix file.
REM Note: Any previously installed vsix must first be uninstalled manually
REM from within VS.
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" /out vsbuild.log /build Release.NET45 "Loyc.netfx.sln"
@IF ERRORLEVEL 1 GOTO ERROR
copy Bin\Release.NET45\*.dll Lib\LeMP
@IF ERRORLEVEL 1 GOTO ERROR
copy Bin\Release.NET45\*.exe Lib\LeMP
@IF ERRORLEVEL 1 GOTO ERROR
copy Bin\Release.NET45\*.xml Lib\LeMP
copy Bin\Release.NET45\*.pdb Lib\LeMP
del Lib\LeMP\*.vshost.exe
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" /out vsbuild.log /build Debug "Visual Studio Integration\Visual Studio Integration 2017.sln"
@echo off
@IF ERRORLEVEL 1 GOTO ERROR
copy "Visual Studio Integration\LoycForVS2017\bin\Debug\LeMP_VisualStudio.vsix" "Lib\LeMP"
@IF ERRORLEVEL 1 GOTO ERROR
"Lib\LeMP\LeMP_VisualStudio.vsix"
pause
GOTO STOP
:ERROR
@echo **********************
@echo *** ERROR OCCURRED ***
@echo **********************
@if exist vsbuild.log more vsbuild.log
pause
:STOP
if exist vsbuild.log del vsbuild.log