MS 构建期间的时间戳
我有一个包含多个数据库项目和一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不认为任何 默认记录器 对此支持,但是其他可用的记录器。 只需搜索“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
经过进一步挖掘,我们找到了这个解决方案;
工具>> 选项>> 展开“项目和解决方案”,然后选择“生成并运行”,
将 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.