forked from NLog/NLog.Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_aspnet.bat
34 lines (28 loc) · 1.07 KB
/
build_aspnet.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
@echo off
rem fallback if not passed
set version_prefix=1.0.0
set version_suffix=
set version_build=%version_prefix%
call :read_params %*
msbuild NLog.Web.sln /t:restore,rebuild /p:configuration=release /verbosity:minimal
IF ERRORLEVEL 1 EXIT /B 1
msbuild src\NLog.Web /t:rebuild,pack /p:configuration=release /verbosity:minimal /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:VersionPrefix=%version_prefix% /p:FileVersion=%version_build% /p:VersionSuffix=%version_suffix%
IF ERRORLEVEL 1 EXIT /B 1
msbuild src\NLog.Web.AspNetCore /t:rebuild,pack /p:configuration=release /verbosity:minimal /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:VersionPrefix=%version_prefix% /p:FileVersion=%version_build% /p:VersionSuffix=%version_suffix%
IF ERRORLEVEL 1 EXIT /B 1
rem read pass parameters by name
:read_params
if not %1/==/ (
if not "%__var%"=="" (
if not "%__var:~0,1%"=="-" (
endlocal
goto read_params
)
endlocal & set %__var:~1%=%~1
) else (
setlocal & set __var=%~1
)
shift
goto read_params
)
exit /B