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
20 lines (15 loc) · 703 Bytes
/
build.cmd
File metadata and controls
20 lines (15 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off
Echo Building Microsoft.OpenApi
SET PROJ=%~dp0src\Microsoft.OpenApi\Microsoft.OpenApi.csproj
dotnet build %PROJ% /t:restore /p:Configuration=Release
dotnet build %PROJ% /t:build /p:Configuration=Release
dotnet build %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts
Echo Building Microsoft.OpenApi.Readers
SET PROJ=%~dp0src\Microsoft.OpenApi.Readers\Microsoft.OpenApi.Readers.csproj
dotnet build %PROJ% /t:restore /p:Configuration=Release
dotnet build %PROJ% /t:build /p:Configuration=Release
dotnet build %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts
goto :end
:error
echo Version parameter missing e.g. build.cmd 1.0.0-beta0008
:end