MS 构建期间的时间戳

发布于 2024-07-29 20:32:26 字数 219 浏览 2 评论 0原文

我有一个包含多个数据库项目和一个 SSIS 项目的解决方案。 整个构建和部署部分需要几分钟,特别是因为我们随构建一起部署单元测试数据。

Visual Studio 2008 是否允许我在构建的输出窗口中显示时间戳以便我可以跟踪事情?

我知道我可以在部署后和部署前执行 SQL 脚本,但除非确实必须这样做,否则我不想为了通用的事情而将 SQL 脚本添加到我的解决方案中的所有项目中。

I have a single solution with multiple database projects and an SSIS projects. The entire build and deploy portion takes a few minutes especially because we deploy unit test data along with the build.

Does Visual Studio 2008 allow me to display timestamps the output window of the build so I can keep track of things?

I know I can execute SQL Scripts during Post-Deployment and Pre-Deployment, but unless I really have to, I do not want to go around adding SQL scripts to all projects in my solution for a generic thing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心头的小情儿 2024-08-05 20:32:26

我不认为任何 默认记录器 对此支持,但是其他可用的记录器。 只需搜索“MSBuild XML Logger”之类的内容即可。

Sayed Ibrahim Hashimi

我的书:Microsoft 构建引擎内部:使用 MSBuild 和 Team Foundation Build

I don't think that any default loggers have support for this but other loggers available to. Just search for something like "MSBuild XML Logger".

Sayed Ibrahim Hashimi

My Book: Inside the Microsoft Build Engine : Using MSBuild and Team Foundation Build

喜你已久 2024-08-05 20:32:26

经过进一步挖掘,我们找到了这个解决方案;

工具>> 选项>> 展开“项目和解决方案”,然后选择“生成并运行”,

将 MSBuild 项目生成输出详细程度设置为“正常”。 这将为构建过程的开始添加时间戳。 必须滚动到顶部并不理想,但至少每个构建都会清除构建输出,因此时间戳将始终位于顶部。

A bit more digging led to finding this solution;

Tools >> Options >> Expand "Projects and Solutions" then select "Build and Run"

Set the MSBuild project build output verbosity to "Normal". This will timestamp the start of the build process. Not ideal to have to scroll to the top but at least each build clears the build output so the timestamp will always be at the top.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文