简体   繁体   English

Visual Studio中构建的进展

[英]Progress of Build in Visual Studio

我正在考虑为Visual Studio编写一个插件,我想知道是否有可能知道剩余的时间(可能不是完美但至少是近似的)才能完成构建过程?

Unfortunately, there is no estimated remaining time in the build system. 不幸的是,构建系统中没有估计的剩余时间。 Other systems like TeamCity usually store metadata about build times and keep a rolling average so as the build/project changes, the expected time to completion can be adjusted accordingly. 像TeamCity这样的其他系统通常存储有关构建时间的元数据并保持滚动平均值,以便在构建/项目更改时,可以相应地调整预期的完成时间。

You'll probably need your plugin to keep that data somehow alongside the project/solution rather than specifically in the plugin since folder paths could change, if the project is in source control it could be checked out elsewhere, etc. Unless, of course, you're not planning on keeping the data across VS restarts. 你可能需要你的插件以某种方式将数据与项目/解决方案一起保存,而不是专门在插件中,因为文件夹路径可能会改变,如果项目在源代码控制中,它可以在其他地方检查,等等。当然,除非你不打算在VS重启之间保持数据。

Best way seems to be - measure first build time of solution and then compare current one with it. 最佳方式似乎是 - 测量解决方案的第一个构建时间,然后将当前的解决方案与之进行比较。

No ideas about technical side how to do that. 没有关于技术方面的想法如何做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM