forked from microsoft/OpenAPI.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
24 lines (17 loc) · 753 Bytes
/
build.cmd
File metadata and controls
24 lines (17 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
if "%~1"=="" goto :error
SET %VERSION%=%~1
Echo Building Microsoft.OpenApi
SET PROJ=%~dp0src\Microsoft.OpenApi\Microsoft.OpenApi.csproj
msbuild %PROJ% /t:restore /p:Configuration=Release
msbuild %PROJ% /t:build /p:Configuration=Release
msbuild %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts;Version=%VERSION%
Echo Building Microsoft.OpenApi.Readers
SET PROJ=%~dp0src\Microsoft.OpenApi.Readers\Microsoft.OpenApi.Readers.csproj
msbuild %PROJ% /t:restore /p:Configuration=Release
msbuild %PROJ% /t:build /p:Configuration=Release
msbuild %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts;Version=%VERSION%
goto :end
:error
echo Version parameter missing e.g. build.cmd 1.0.0-beta0008
:end