forked from loafle/openapi-generator-original
17 lines
777 B
Batchfile
17 lines
777 B
Batchfile
:: Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
::
|
|
|
|
@echo off
|
|
|
|
SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v3.5
|
|
|
|
if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://dist.nuget.org/win-x86-commandline/latest/nuget.exe', '.\nuget.exe')"
|
|
.\nuget.exe install src\IO.Swagger\packages.config -o packages
|
|
|
|
if not exist ".\bin" mkdir bin
|
|
|
|
copy packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
|
|
copy packages\RestSharp.105.1.0\lib\net4\RestSharp.dll bin\RestSharp.dll
|
|
%CSCPATH%\csc /reference:bin\Newtonsoft.Json.dll;bin\RestSharp.dll;System.ComponentModel.DataAnnotations.dll /target:library /out:bin\IO.Swagger.dll /recurse:src\IO.Swagger\*.cs /doc:bin\IO.Swagger.xml
|
|
|