How to get logs into the Tool Log in Release Management for Visual Studio

偶尔善良 提交于 2019-12-11 11:52:16

问题


In the Release Management for Visual Studio Deployment log, which can be found under the Details button found when viewing the details of a release, there are a number of columns.

The last three of these are Tool Log, Command Output and Status.

I have never seen anything in Tool Log, but I am in the situation now where I have a component running tests using vstest.console.exe.

Under "Command Output", I see the output from this program as it appears in the console window. However, vstest.console.exe can also be instructed to create a test log (a .trx file), which I would like to view under Tool Log. But I have no idea how to make this happen.

How do I get a log to appear under the Tool Log column?


回答1:


The answer, it seems, is to set the "Log File Name" in the Tool definition to whatever log file you wish to view (in my case, the .trx file).

This obviously requires that you are using a tool that defines this, or a custom one. Fortunately, I'm using a custom tool.




回答2:


Your Tool have to copy/create the .trx file to/in the Tool's work directory (%LOCALAPPDATA%\Temp\RM\T\RM\\).

Don't forget to add .trx extesion to Administration -> Settings -> Approved File Extension List.



来源:https://stackoverflow.com/questions/28561081/how-to-get-logs-into-the-tool-log-in-release-management-for-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!