Lack of code when creating .NET 4 applications in Team Build 2008

I am building VS2010 solutions on the TFS2008 build agent with VS2010 Ultimate installed; the code compiles fine and the tests all work fine, but when it comes to code coverage, nothing is reported. I checked that Code Coverage is included in the .testsettings file, and that I selected some assemblies for the tool, and if I run tests locally on my developer's computer, the code coverage is analyzed and reported successfully.

However, when it is built on the build server, code coverage is not reported. I see the data.coverage file located in the TestResults \ guid \ In \ MachineName assembly, so it obviously did something, but the assembly logs did not mention anything in common with the code coverage and no warnings / errors.

Update: on the TFS server itself, the application log contains the following error:

Code Coverage Analysis Service was unable to parse code coverage data for the Daily Build> 20100812.2 (any processor / DEBUG) assembly. This is often caused by publishing different versions of the same binary for a particular assembly. Processing code coverage data from starting svcTFSService @ W2411193 2010-08-12 12:52:32: 34_Any CPU_Debug caused the following exception: Error while creating coverage information: Error loading character file. Symbols and binaries must be in the same folder as the coverage file or symbol path: D: \ Source \ CommonPlatform \ Common Platform Development Daily Build \ Binaries \ Debug \ Core.dll.

However, when I look at the assembly agent in the specified folder, both the assembly and its debug file are in the expected location.

Update 2: On a whim, I tried to open the data.coverage file, which I mentioned above in VS 2010 in the build agent, and received the following error:

The error code analysis engine threw an exception: the image file "D: \ Source \ CommonPlatform \ Common Platform Development Daily Build \ Binaries \ Debug \ Core.dll" was not found.

However, I can explicitly see the file located in the file system, as well as its PDB.

+3
source share
2 answers

, , . ( ). , , Core.dll , .

, , , .

0

Source: https://habr.com/ru/post/1759253/


All Articles