-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathUpdateLibLeMPAndReinstall.bat
35 lines (30 loc) · 1.16 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
35
REM This script builds the extension (vsix file) for Visual Studio 2022,
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\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe" /out vsbuild.log /build Release "Loyc.netfx.sln"
@IF ERRORLEVEL 1 GOTO ERROR
mkdir Lib\LeMP
copy Bin\Release\*.dll Lib\LeMP
@IF ERRORLEVEL 1 GOTO ERROR
copy Bin\Release\*.exe Lib\LeMP
@IF ERRORLEVEL 1 GOTO ERROR
copy Bin\Release\*.xml Lib\LeMP
copy Bin\Release\*.pdb Lib\LeMP
copy Bin\Release\*.exe.config Lib\LeMP
"C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe" /out vsbuild.log /build Debug "Visual Studio Integration\Visual Studio Integration 2022.sln"
@echo off
@IF ERRORLEVEL 1 GOTO ERROR
copy "Visual Studio Integration\LoycForVS2022\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 type vsbuild.log
pause
:STOP
if exist vsbuild.log del vsbuild.log