c# - Programmatically convert coverage file to coveragexml -


i using visual studio find code coverage. have generated .coverage file , can open in visual studio. want convert .coveragexml file. using coverageinfo, coverageds classes. here code trying:

coverageinfo info = coverageinfo.createfromfile(coveragefilepath, binarypath,symbolpath); coverageds dataset = info.builddataset(); dataset.writexml(outfile); 

since coverage file large, call info.builddataset gives out of memory exception. there alternate way coveragexml?

i referred msdn blog http://blogs.msdn.com/b/phuene/archive/2009/12/01/programmatic-coverage-analysis-in-visual-studio-2010.aspx mentions case. article mentions using icoveragemodule interface module module information coverageinfo class. how convert module information xml? blog shows example of how module information can parsed , printed. looking converting coveragexml file.

i running same system.outofmemoryexception when calling coverageinfo.builddataset(...). work around problem changed project build 64 bit application enables process use much more memory. need reference 64 bit versions of:

  • microsoft.visualstudio.coverage.analysis.dll
  • microsoft.visualstudio.coverage.interop.dll

you can find these on system has tfs installed. in c:\program files\microsoft team foundation server xx.0\application tier\tfsjobagent\plugins.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -