Build Progress in Visual Studio

I was thinking of writing a plug-in for Visual Studio, and I want to know if it is possible to find out the remaining time (maybe not a prefix, but at least an approximate one) to complete the build process?

+3
source share
2 answers

Unfortunately, there is no estimated remaining time in the build system. Other systems, such as TeamCity, usually store metadata about the build time and keep a moving average, since changes to the assembly / project, the expected time to completion can be adjusted accordingly.

You will probably need your plugin to support this data somehow next to the project / solution, and not specifically in the plugin, since the folder paths can change if the project is in the original control, it can be checked elsewhere, etc. d. Of course, you do not plan to store data in all VS reboots.

+1
source

The best way is to measure the first time you build the solution, and then compare the current time with it.

No ideas on the technical side of how to do this.

0
source

Source: https://habr.com/ru/post/1732164/


All Articles