-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.bat
More file actions
17 lines (13 loc) · 794 Bytes
/
client.bat
File metadata and controls
17 lines (13 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@echo off
if not exist ".\Resources\bin" (
md .\Resources\bin
)
if not exist ".\Resources\bin\nswag" (
echo "Downloading nswag ..."
curl.exe --output .\Resources\bin\nswag.zip -L https://github.com/RicoSuter/NSwag/releases/download/v14.4.0/NSwag.zip
md .\Resources\bin\nswag
tar -xf .\Resources\bin\nswag.zip -C .\Resources\bin\nswag
del .\Resources\bin\nswag.zip
)
.\Resources\bin\nswag\Net80\dotnet-nswag.exe openapi2csclient /input:https://localhost:44312/swagger/v1/swagger.json /GenerateNativeRecords:true /classname:SimpleStoreClient /namespace:SimpleStore.Admin.Services.v1 /output:.\SimpleStore.Admin\Services\v1\StorageClient.cs /ArrayType:System.Collections.Generic.List /ArrayInstanceType:System.Collections.Generic.List /JsonLibrary:SystemTextJson
exit