-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
934 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1 @@ | ||
@if not defined _echo @echo off | ||
setlocal enabledelayedexpansion | ||
|
||
SET CMDHOME=%~dp0. | ||
if "%BUILD_FLAGS%"=="" SET BUILD_FLAGS=/m /v:m | ||
if not defined BuildConfiguration SET BuildConfiguration=Debug | ||
|
||
:: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and | ||
:: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69). | ||
set Platform= | ||
|
||
:: Disable multilevel lookup https://github.com/dotnet/core-setup/blob/master/Documentation/design-docs/multilevel-sharedfx-lookup.md | ||
set DOTNET_MULTILEVEL_LOOKUP=0 | ||
|
||
call Ensure-DotNetSdk.cmd | ||
|
||
SET SOLUTION=%CMDHOME%\DotNetty.sln | ||
|
||
:: Set DateTime suffix for debug builds | ||
for /f %%j in ('powershell -NoProfile -ExecutionPolicy ByPass Get-Date -format "{yyMMddHHmm}"') do set DATE_SUFFIX=%%j | ||
SET AdditionalConfigurationProperties=;VersionDateSuffix=%DATE_SUFFIX% | ||
|
||
@echo ===== Building %SOLUTION% ===== | ||
|
||
@echo Build %BuildConfiguration% ============================== | ||
SET STEP=Restore %BuildConfiguration% | ||
|
||
call %_dotnet% restore %BUILD_FLAGS% /bl:%BuildConfiguration%-Restore.binlog /p:Configuration=%BuildConfiguration%%AdditionalConfigurationProperties% "%SOLUTION%" | ||
@if ERRORLEVEL 1 GOTO :ErrorStop | ||
@echo RESTORE ok for %BuildConfiguration% %SOLUTION% | ||
|
||
SET STEP=Build %BuildConfiguration% | ||
call %_dotnet% build --no-restore %BUILD_FLAGS% /bl:%BuildConfiguration%-Build.binlog /p:Configuration=%BuildConfiguration%%AdditionalConfigurationProperties% "%SOLUTION%" | ||
@if ERRORLEVEL 1 GOTO :ErrorStop | ||
@echo BUILD ok for %BuildConfiguration% %SOLUTION% | ||
|
||
|
||
:BuildFinished | ||
@echo ===== Build succeeded for %SOLUTION% ===== | ||
@GOTO :EOF | ||
|
||
:ErrorStop | ||
set RC=%ERRORLEVEL% | ||
if "%STEP%" == "" set STEP=%BuildConfiguration% | ||
@echo ===== Build FAILED for %SOLUTION% -- %STEP% with error %RC% - CANNOT CONTINUE ===== | ||
exit /B %RC% | ||
:EOF | ||
PowerShell.exe -file "build.ps1" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.