Visual Studio IDE: I want it to make a sound after it compiles so I can get back to work

我只是一个虾纸丫 提交于 2019-11-27 12:40:48

问题


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



来源:https://stackoverflow.com/questions/2836947/visual-studio-ide-i-want-it-to-make-a-sound-after-it-compiles-so-i-can-get-back

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!