Visual Studio IDE: I want it to make a sound after

2019-01-22 17:06发布

问题:

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?

回答1:

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.



回答2:

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.



回答3:

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