MSBuild 빌드의 성공 여부를 배치 파일에서 탐지하기

  • Post author:
  • Post category:
  • Post comments:0 Comments
  • Post last modified:January 22, 2020

혹시 쓸 일이 있을지도 모르니 메모해놓자. 출처는 MSDN 포럼이다.

@echo off
msbuild Helper.csproj /t:Rebuild /p:Configuration=Debug
set BUILD_STATUS=%ERRORLEVEL%
if %BUILD_STATUS%==0 echo Build success
if not %BUILD_STATUS%==0  echo Build failed

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.