开发者

How to Read CodeAnalysisLog XML File?

I'm trying to automatically trigger a code analysis software called NDepend on the postbuild event of an automated build in TFS 2010 (If you'd like more details on this, please see this).

I added this code in:

<Target Name="NDepend"  >
    <PropertyGroup>
      <NDPath>c:\tools\NDepend\NDepend.console.exe</NDPath>
      <NDProject>$(SolutionDir)MyProject.ndproj</NDProject>
      <NDOut>$(TargetDir)NDepend</NDOut>
      <NDIn>$(TargetDir)</NDIn>
    </PropertyGroup>
    <Exec
      Command='"$(NDPath)" "$(NDProject)" /OutDir "$(NDOut)" /InDirs "$(NDIn)"'/>
</Target>

Much like I did in one of my attempts previously. It built fine, no errors, but I didn't see any immediate signs of the NDepend running. However, on a hunch, I decided to check the drop folder from the automated build and I found some XML files labeled "blah.CodeAnalysisLog" And I didn't recall these being there in previous versions, so I tried to open them, thinking it might be the NDepend analysis. But when I clicked it, Internet Explorer displayed as follows:

The XML page cannot be displayed

Cannot view XML input using XSLT style sheet. Please correct the error and then click the Refresh button, or try again later.

Access is denied.

Has anyone experienced this issue? And if so, what is causing it? Is it something to do with the NDepend XML I added above? Or is this error completely unr开发者_StackOverflow社区elated to the NDepend XML I've added?


The error message that you're getting is because IE doesn't know how to render the XML. Try opening the blah.CodeAnalysisLog in notepad.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜