如何获取日志到Visual Studio发行管理中的工具日志中 [英] How to get logs into the Tool Log in Release Management for Visual Studio

查看:88
本文介绍了如何获取日志到Visual Studio发行管理中的工具日志中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio部署的版本管理日志中,有许多列.在查看发布的详细信息时,可以在详细信息"按钮下找到该日志.

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.

我从未在工具日志中看到任何内容,但是现在我处于这样的情况:我有一个组件使用vstest.console.exe运行测试.

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.

在命令输出"下,我看到了该程序在控制台窗口中显示的输出.但是,也可以指示vstest.console.exe创建测试日志(.trx文件),我想在工具日志下查看该日志.但是我不知道该如何实现.

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?

推荐答案

答案似乎是将工具"定义中的日志文件名"设置为您要查看的任何日志文件(在我的情况下, .trx文件).

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.

这篇关于如何获取日志到Visual Studio发行管理中的工具日志中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆