Microsoft MVP성태의 닷넷 이야기
Team Foundation Server: 32. 팀 빌드 오류 확인 방법 [링크 복사], [링크+제목 복사],
조회: 21087
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

TFS - 팀 빌드 오류 확인 방법


지난 이야기에 이어서.

TFS - 팀 빌드 스케줄 확인 방법
; https://www.sysnet.pe.kr/2/0/731

스케줄링된 팀 빌드(또는 임의로 실행)에서 오류가 발생했다면 어떻게 확인할까요?




1. Team Explorer를 열고 속해 있는 팀 프로젝트의 "Builds" 노드를 확장합니다.

2. 팀 빌드 이름을 마우스로 두 번 클릭하면 "Build Explorer"가 실행됩니다. 이에 대해서는 다음의 글에서도 이미 설명드렸지요.

VSTS 2008의 Build Explorer
; https://www.sysnet.pe.kr/2/0/597

참고로, 원하는 "Date filter"를 설정하면 팀 빌드 기록을 필터링할 수 있습니다. (보통 "Today" 설정이 가장 무난합니다.)

[그림 1: 빌드 탐색기 - Date Filter]
team_build_check_error_1.png

3. "X" 마크는 누가 봐도 팀 빌드 오류가 발생했음을 알 수 있게 합니다. 해당 항목을 마우스로 두 번 누르면 다음과 같이 빌드 결과에 대한 자세한 정보를 담은 창이 뜨게 됩니다. (여기서부터는 Visual Studio 2010과 2008의 동작이 다르기 때문에 2008 기준으로 다시 화면 갈무리를 합니다.)

[그림 2: 빌드 결과]
team_build_check_error_2.png

보시는 것처럼, 링크가 "Build name"과 "Log" 2군데에서 제공됩니다. "Log"에 해당하는 "\\dxtfs2008\BuildRoot\INS\Debug_20090527.1\BuildLog.txt" 링크를 누르면 자세한 정보를 담은 로그 기록 파일이 열립니다. 이것 외에 동일한 폴더에 오류와 경고 로그만을 포함한 "ErrorsWarningsLog.txt" 파일도 있으므로 간단하게 그 파일을 참조하는 것도 도움이 되겠습니다. (UNC 경로이기 때문에, 당연히 네트워크 파일 공유가 가능해야 합니다.)

어쨌든, 로그 파일을 살펴보면 오류가 나옵니다.

예를 들어 보면, 아래의 로그는 개발자가 자신의 PC에만 설치된 전역 어셈블리를 참조해서 무책임하게 프로젝트를 체크인한 경우를 보여줍니다.

[Any CPU/Release] D:\BuildWorkDir\....xaml(37,45): error MC1000: Unknown build error, 'Cannot resolve dependency to assembly 'Infragistics3.Wpf.Editors.v9.1, Version=9.1.20091.1006, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event. Line 37 Position 45.'
[Any CPU/Release] C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(0,0): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Infragistics3.Wpf.DockManager.v9.1". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
[Any CPU/Release] C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(0,0): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Infragistics3.Wpf.v9.1". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
[Any CPU/Release] WPFSpecific\ViewManager.cs(7,7): error CS0246: The type or namespace name 'Infragistics' could not be found (are you missing a using directive or an assembly reference?)



그 외에 심심치 않게 나오는 오류로 파일명이 너무 긴 경우가 있습니다. 이런 경우는 방법이 없습니다. 어떻게 해서든지 파일 경로를 단축시켜야 합니다. ^^

"D:\...\TFSBuild.proj"(EndToEndIteration 대상)(1) ->
(CoreGet 대상) ->
C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(755,5,755,5): error : TF10128: D:\TeamBuildWorkingDirectory\TestPackage\Debug\Sources\TestPackage\TestMockupProjects\Mockup.CPP\Service References\HistoryServiceRef\Mockup.CPP.HistoryServiceRef.ArrayOfKeyValueOfChartDisplayProjectSettingTypeanyTypexS7gyJOuKeyValueOfChartDisplayProjectSettingTypeanyTypexS7gyJOu.datasource 경로가 최대 길이인 259자보다 깁니다. 더 짧은 경로를 입력하거나 선택하십시오.
C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(755,5,755,5): error : TF10128: D:\TeamBuildWorkingDirectory\TestPackage\Debug\Sources\TestPackage\TestMockupProjects\Mockup.CPP\Service References\HistoryServiceRef\Mockup.CPP.HistoryServiceRef.ArrayOfKeyValueOfChartDisplaySettingTanyTypexS7gyJOuKeyValueOfChartDisplaySettingTanyTypexS7gyJOu.datasource 경로가 최대 길이인 259자보다 깁니다. 더 짧은 경로를 입력하거나 선택하십시오.



TFS 2010에서는 259글자 제한이 좀 없어졌으면 하는 바람입니다. ^^



[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 6/30/2021]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




1  2  3  4  5  6  7  [8]  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13443정성태11/14/20232829개발 환경 구성: 687. OpenSSL로 생성한 사용자 인증서를 ASP.NET Core 웹 사이트에 적용하는 방법
13442정성태11/13/20232596개발 환경 구성: 686. 비주얼 스튜디오로 실행한 ASP.NET Core 사이트를 WSL 2 인스턴스에서 https로 접속하는 방법
13441정성태11/12/20232995닷넷: 2159. C# - ASP.NET Core 프로젝트에서 서버 Socket을 직접 생성하는 방법파일 다운로드1
13440정성태11/11/20232576Windows: 253. 소켓 Listen 시 방화벽의 Public/Private 제어 기능이 비활성화된 경우
13439정성태11/10/20233189닷넷: 2158. C# - 소켓 포트를 미리 시스템에 등록/예약해 사용하는 방법(Port Exclusion Ranges)파일 다운로드1
13438정성태11/9/20232806닷넷: 2157. C# - WinRT 기능을 이용해 윈도우에서 실행 중인 Media App 제어
13437정성태11/8/20232957닷넷: 2156. .NET 7 이상의 콘솔 프로그램을 (dockerfile 없이) 로컬 docker에 배포하는 방법
13436정성태11/7/20233197닷넷: 2155. C# - .NET 8 런타임부터 (Reflection 없이) 특성을 이용해 public이 아닌 멤버 호출 가능
13435정성태11/6/20233096닷넷: 2154. C# - 네이티브 자원을 포함한 관리 개체(예: 스레드)의 GC 정리
13434정성태11/1/20232912스크립트: 62. 파이썬 - class의 정적 함수를 동적으로 교체
13433정성태11/1/20232574스크립트: 61. 파이썬 - 함수 오버로딩 미지원
13432정성태10/31/20232662오류 유형: 878. 탐색기의 WSL 디렉터리 접근 시 "Attempt to access invalid address." 오류 발생
13431정성태10/31/20233083스크립트: 60. 파이썬 - 비동기 FastAPI 앱을 gunicorn으로 호스팅
13430정성태10/30/20232881닷넷: 2153. C# - 사용자가 빌드한 ICU dll 파일을 사용하는 방법
13429정성태10/27/20233127닷넷: 2152. Win32 Interop - C/C++ DLL로부터 이중 포인터 버퍼를 C#으로 받는 예제파일 다운로드1
13428정성태10/25/20233265닷넷: 2151. C# 12 - ref readonly 매개변수
13427정성태10/18/20233458닷넷: 2150. C# 12 - 정적 문맥에서 인스턴스 멤버에 대한 nameof 접근 허용(Allow nameof to always access instance members from static context)
13426정성태10/13/20233577스크립트: 59. 파이썬 - 비동기 호출 함수(run_until_complete, run_in_executor, create_task, run_in_threadpool)
13425정성태10/11/20233343닷넷: 2149. C# - PLinq의 Partitioner<T>를 이용한 사용자 정의 분할파일 다운로드1
13423정성태10/6/20233331스크립트: 58. 파이썬 - async/await 기본 사용법
13422정성태10/5/20233453닷넷: 2148. C# - async 유무에 따른 awaitable 메서드의 병렬 및 예외 처리
13421정성태10/4/20233550닷넷: 2147. C# - 비동기 메서드의 async 예약어 유무에 따른 차이
13420정성태9/26/20235943스크립트: 57. 파이썬 - UnboundLocalError: cannot access local variable '...' where it is not associated with a value
13419정성태9/25/20233336스크립트: 56. 파이썬 - RuntimeError: dictionary changed size during iteration
13418정성태9/25/20234099닷넷: 2146. C# - ConcurrentDictionary 자료 구조의 동기화 방식
13417정성태9/19/20233632닷넷: 2145. C# - 제네릭의 형식 매개변수에 속한 (매개변수를 가진) 생성자를 호출하는 방법
1  2  3  4  5  6  7  [8]  9  10  11  12  13  14  15  ...