Flurl/Build/build.cmd
Nikolay Molchanov 4345f5d90c [fix] errors
2019-02-24 12:04:56 +03:00

36 lines
673 B
Batchfile

@call dotnet --info
@call dotnet restore -v m ../
@if ERRORLEVEL 1 (
echo Error! Restoring dependencies failed.
exit /b 1
) else (
echo Restoring dependencies was successful.
)
@set project=..\src\Flurl.Http.CodeGen\Flurl.Http.CodeGen.csproj
@call dotnet run -c Release -p %project% ..\src\Flurl.Http\GeneratedExtensions.cs
@if ERRORLEVEL 1 (
echo Error! Generation cs file failed.
exit /b 1
)
@set project=..\src\Flurl\
@call dotnet build -c Release %project%
@if ERRORLEVEL 1 (
echo Error! Build Flurl failed.
exit /b 1
)
@set project=..\src\Flurl.Http\
@call dotnet build -c Release %project%
@if ERRORLEVEL 1 (
echo Error! Build Flurl.Http failed.
exit /b 1
)