빌드를 구성했는데, 다음과 같은 오류 화면이 나오는 경우가 있습니다.
위의 "Log" 파일을 클릭해 보면, 아래와 같이 "Target CoreTest:" 영역에서 오류가 난 것을 확인할 수 있습니다.
Target CoreTest:
Creating directory "C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\..\TestResults".
__________________________________________________
Project "C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\TFSBuild.proj" is building "C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\TFSBuild.proj" (RunTestWithConfiguration target(s)):
Target RunTestWithConfiguration:
TestToolsTask MetadataFile="C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\Msdn.MathLibrary\Msdn.MathLibrary.vsmdi" TestLists="Double Tests, Int Tests" SearchPathRoot="C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\..\Binaries\Debug\" PathToResultsFilesRoot="C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\..\TestResults" PublishServer="http://win2003base:8080/" TeamProject="MSDN Calculator" PublishBuild="Continuous Integration_20060409.6" BuildFlavor="Debug" Platform="Any CPU"
Loading C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\Msdn.MathLibrary\Msdn.MathLibrary.vsmdi...
Search path(s) for tests:
C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\..\Binaries\Debug\
C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\Sources\Msdn.MathLibrary
Search path(s) for default run configuration:
C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\Sources\Msdn.MathLibrary
Starting execution...
MSBUILD : warning : Specified cast is not valid. (지정한 캐스트가 잘못되었습니다.)
The previous error was converted to a warning because the task was called with ContinueOnError=true.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : There are no results to be published.
Build continuing because "ContinueOnError" on the task "TestToolsTask" is set to "true".
Done building target "RunTestWithConfiguration" in project "TFSBuild.proj".
Done building project "TFSBuild.proj".
위의 오류에 대해서 MSDN 을 검색해 보면, 다음과 같은 답이 나옵니다.
MSBUILD: warning : Specified cast is not valid
Make sure that you do not have an empty test list or subtest list included in the build process. If you have empty lists, edit the tfsbuild.proj file to remove them.
즉, 테스트 항목이 비어 있다는 것인데요.
가령 예를 들어, 아래의 예에는 테스트 메서드가 10 개 있을 때의 "Test Manager" 화면을 보여주고 있습니다.
보시는 것처럼, "Test List Full Name" 이 비어 있는 것을 확인할 수 있습니다. 즉, 테스트 메서드만 있을 뿐, 해당 테스트 들이 "Double Test" 또는 "Int Tests" 에는 지정되어 있지 않다는 것입니다. 따라서, "All Loaded Tests" 에 있는 테스트 항목들을 적절하게 선택해서 "Double Test" 또는 "Int Tests"에 끌어다 놓아야 합니다.
모두 완료되었으면 다음과 같은 화면이 됩니다.
이제, 다시 빌드를 시작하면 - 물론, 해당 빌드가 "Double Test" 또는 "Int Tests" 에 대한 단위 테스트를 한다고 지정했던 - 오류가 없이 정상적으로 진행되는 것을 확인하실 수 있습니다.
(Test Manager에서 수정하신 다음, 체크인하는 것 잊지 마십시오. 빌드 서버에서는 체크인 된 소스만 가져갈 수 있습니다.)
Title |
11916 | 정성태 | 5/24/2019 | 24716 | Math: 51. MathNET + OxyPlot을 이용한 간단한 통계 정보 처리 - Histogram | 1 |
11915 | 정성태 | 5/24/2019 | 29284 | Linux: 11. 리눅스의 환경 변수 관련 함수 정리 - putenv, setenv, unsetenv | |
11914 | 정성태 | 5/24/2019 | 28071 | Linux: 10. 윈도우의 GetTickCount와 리눅스의 clock_gettime | 1 |
11913 | 정성태 | 5/23/2019 | 22260 | .NET Framework: 838. C# - 숫자형 타입의 bit(2진) 문자열, 16진수 문자열 구하는 방법 | 1 |
11912 | 정성태 | 5/23/2019 | 23209 | VS.NET IDE: 137. Visual Studio 2019 버전 16.1부터 리눅스 C/C++ 프로젝트에 추가된 WSL 지원 | |
11911 | 정성태 | 5/23/2019 | 22546 | VS.NET IDE: 136. Visual Studio 2019 - 리눅스 C/C++ 프로젝트에 인텔리센스가 동작하지 않는 경우 | |
11910 | 정성태 | 5/23/2019 | 31615 | Math: 50. C# - MathNet.Numerics의 Matrix(행렬) 연산 [1] | 1 |
11909 | 정성태 | 5/22/2019 | 27351 | .NET Framework: 837. C# - PLplot 사용 예제 [1] | 1 |
11908 | 정성태 | 5/22/2019 | 25707 | .NET Framework: 836. C# - Python range 함수 구현 | 1 |
11907 | 정성태 | 5/22/2019 | 21100 | 오류 유형: 541. msbuild - MSB4024 The imported project file "...targets" could not be loaded | |
11906 | 정성태 | 5/21/2019 | 21721 | .NET Framework: 835. .NET Core/C# - 리눅스 syslog에 로그 남기는 방법 | |
11905 | 정성태 | 5/21/2019 | 22137 | .NET Framework: 834. C# - 폴더 경로 문자열에서 "..", "." 표기를 고려한 최종 문자열을 얻는 방법 - 두 번째 이야기 | |
11904 | 정성태 | 5/21/2019 | 32324 | .NET Framework: 833. C# - Open Hardware Monitor를 이용한 CPU 온도 정보 [1] | 1 |
11903 | 정성태 | 5/21/2019 | 25823 | 오류 유형: 540. .NET Core - System.PlatformNotSupportedException: The named version of this synchronization primitive is not supported on this platform. | |
11902 | 정성태 | 5/21/2019 | 22390 | 오류 유형: 539. mstest 실행 시 "The directory name is invalid." 오류 발생 | |
11901 | 정성태 | 5/21/2019 | 26006 | 오류 유형: 538. msbuild 오류 - Could not find a part of the path '%LOCALAPPDATA%\Temp\2\.NETFramework,Version=v4.0.AssemblyAttributes.cs' | |
11900 | 정성태 | 5/18/2019 | 24661 | 오류 유형: 537. "sfc /scannow" 실행 중 시스템이 부팅되는 현상 | |
11899 | 정성태 | 5/17/2019 | 24604 | Linux: 9. Linux에서 윈도우의 OutputDebugString 대신 사용할 수 있는 syslog [1] | |
11898 | 정성태 | 5/16/2019 | 26040 | VC++: 130. C++ string의 c_str과 data 함수의 차이점 [3] | |
11897 | 정성태 | 5/16/2019 | 31798 | 오류 유형: 536. Visual Studio - "Developer Pack"을 설치했는데도 "대상 프레임워크" 목록에 나오지 않는 경우 [2] | |
11896 | 정성태 | 5/15/2019 | 29395 | 개발 환경 구성: 440. C#, C++ - double의 Infinity, NaN 표현 방식 | 1 |
11895 | 정성태 | 5/12/2019 | 26015 | .NET Framework: 832. ML.NET Model Builder - 회귀(Regression), 다중 분류(Multi-class classification) 예제 | 1 |
11894 | 정성태 | 5/10/2019 | 28207 | VS.NET IDE: 135. Visual Studio - ML.NET Model Builder 소개 [5] | |
11893 | 정성태 | 5/10/2019 | 23564 | 오류 유형: 535. C# 6.0 이상의 문법을 컴파일 시 오류가 발생한다면? | |
11892 | 정성태 | 5/10/2019 | 22916 | 웹: 38. HTTP Cookie의 expires 시간 형식(RFC7231) | |
11891 | 정성태 | 5/9/2019 | 26706 | .NET Framework: 831. (번역글) .NET Internals Cookbook Part 12 - Memory structure, attributes, handles | |