Is there a way to see the overall build progress in Visual studio?
In my solution there are nearly more than 30 projects. So it takes a long time to build the entire project.
I am looking for a way to see 8/30 In progress or something similar to that?
It still doesn't tell you progress, but it might help to see the Build Output window. If you know the order of the projects it should give you a feel of how far along the build is.
You can also investigate this Build Progress plugin (leverages the Windows 7 progress taskbar: https://github.com/alastairs/buildprogress/ discussed here http://www.codebork.com/coding/2009/11/04/creating-small-visual-studio-2010-add.html
Here is quite nice extension for Visual Studio:
VSBuildStatus:
http://visualstudiogallery.msdn.microsoft.com/2A2293B4-1808-44AA-B030-661F6803D8A1?SRC=VSIDE
Taskbar Build Progress displays total build progress into taskbar without adding any more clutter to VS.
Related
Sometimes in VS2017 Visual Studio takes forever to run a new project and all the while it is showing an icon in the bottom of the status bar that looks like this:
I would guess that this means that it's downloading something, but what? It's frustrating that Visual Studio doesn't provide better messaging about what's going on given that sometime the process may take five minutes or more and I'm not sure what it is doing.
What does this icon mean? And is there any way to see what Visual Studio is doing in such a situation?
I found a related question Visual Studio stuck initializing with strange icon in status bar but it does not answer my question.
It isn't about downloading. Visual Studio 2017 (and earlier versions as well) shows this icon in the status bar during the building process.
You can see more information in the Output window, click View → Output
You may notice that suddenly a project that normally builds quickly is taking a long time to build.
I've now personally been caught by this about 3 times myself.
This can occur in VS 2017 because VS 2017 has code analysis available. If you compile your project using "Debug with code analysis instead of "Debug" selected this will run full code analysis on your code during the build process.
I just opened a project that i havent opened for awhile and "debug with code analysis" was the default option when i opened it. So this caught me just a few minutes ago.
What makes this confusing is that the drop down box in visual studio is not very wide. So it is often difficult to see that you are compiling with code analysis because the text is cut off as can be seen in this image below and a developer only sees "Debug w" and they don't realize they are compiling with code analysis.
Hope that helps.
thanks
Matt
When the project is huge, the cost time for compiling can be several hours? Is it possible to ask Visual Studio to play some sound to alert me the compiling is done.
Add a custom build step that calls some command line audio player thingy.
There is in fact a hidden windows setting just for that. Here's an old link, and here's a current (windows 7) screenshot:
You get there via Control panel/Sound / sounds tab, and scroll down to 'Microsoft Visual Studio'.
Use a Post Build event. It will run after the build step. Attach it to the final executable's project.
Would be a nice thing - do I have to write a script or can't I just tweak the build script to do some task?
Windows already has support for this, go to the Control Panel and open up Sounds and Audio Devices. Under the Sounds tab there is a section for program events. If you scroll down far enough one of the sections will be Microsoft Visual Studio. Then just pick the sound you want to hear for Build Succeeded and Build Failed. You will need to restart Visual Studio after choosing your sounds.
If you don't want to enable it for every single build, you can make an application that plays a sound, and add it into the post build event for that project.
I also wrote an extension for Visual Studio to achieve that. It also can play a sound when tests finished to run.
Visual Studio Ding extension
I have just discovered macros in Visual Studio and I can't be happier. Well... I have my complaints but... you know ;)
A few of my macros are taking quite a while to complete and I am looking for a way to track progress. I build a log file during most of my macro processes but I have not found a good way to report progress without pausing the process. Ex. MsgBox("Progress")
Any way to access the output window or even better the VS status bar?
I made a macro for Visual Studio 2005 which needed a form to choose between some options. I made that form from code and everything worked fine.
I think that you can do something similar. You can create a form with a progress bar and use that to track your progresses.
You could also use the visual studio designer to generate the code for you.
Is it possible in any way to troubleshoot the build process in Visual Studio? I'd like to see which part of the build specifically takes so much time.
Tools\Options\Project and Solutions\Build and Run\MSBuild output verbosity -> verbose.
In the Output Window, you'll get a time summary at the end, and you can see at which point in the process there is a long pause.
Watch the output window in visual studio during a build or build from the command line directly with MSBuild. You should be able to notice where the build process is spending most of its time.