-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpack.cmd
More file actions
32 lines (21 loc) · 1.04 KB
/
Copy pathpack.cmd
File metadata and controls
32 lines (21 loc) · 1.04 KB
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
@echo off
setlocal
set "ROOT=%~dp0"
if "%ROOT:~-1%"=="\" set "ROOT=%ROOT:~0,-1%"
set "OUTDIRTOOLS=%ROOT%\tmp\tools\codegen"
set "OUTDIRPACK=%ROOT%\package"
if exist "%ROOT%\tmp" rmdir /s /q "%ROOT%\tmp"
if exist "%OUTDIRPACK%" rmdir /s /q "%OUTDIRPACK%"
dotnet build "%ROOT%\SqExpress.GenSyntaxTraversal\SqExpress.GenSyntaxTraversal.csproj" -c Release -verbosity:quiet -nologo -o "%ROOT%\SqExpress.GenSyntaxTraversal\bin\"
if errorlevel 1 exit /b %errorlevel%
dotnet "%ROOT%\SqExpress.GenSyntaxTraversal\bin\SqExpress.GenSyntaxTraversal.dll" "%ROOT%\SqExpress"
if errorlevel 1 exit /b %errorlevel%
dotnet test "%ROOT%\Test\SqExpress.Test\SqExpress.Test.csproj" -f net8.0
if errorlevel 1 exit /b %errorlevel%
dotnet build "%ROOT%\SqExpress.CodegenUtil\SqExpress.CodeGenUtil.csproj" -o "%OUTDIRTOOLS%" -c Release
if errorlevel 1 exit /b %errorlevel%
del /q "%OUTDIRTOOLS%\*.dev.json" 2>nul
dotnet pack "%ROOT%\SqExpress\SqExpress.csproj" -o "%OUTDIRPACK%" -c Release
if errorlevel 1 exit /b %errorlevel%
if exist "%ROOT%\tmp" rmdir /s /q "%ROOT%\tmp"
endlocal