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
Author Details
Kubernetes, DevSecOps, AWS, 클라우드 보안, 클라우드 비용관리, SaaS 의 활용과 내재화 등 소프트웨어 개발 전반에 도움이 필요하다면 도움을 요청하세요. 지인이라면 가볍게 도와드리겠습니다. 전문적인 도움이 필요하다면 저의 현업에 방해가 되지 않는 선에서 협의가능합니다.
0 0 votes
Article Rating
Subscribe
Notify of
guest

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

0 Comments
Inline Feedbacks
View all comments