English 中文(简体)
How do I get notification that the local Visual Studio build is complete?
原标题:

There doesn t seem to be a post-build solution task. One could presumably hack it by creating a dummy project that is the last one to build and put a beep in the post-build project.

最佳回答

Do you need something like this (screenshot is there)?

Did you know you can assign sounds to a few Visual Studio events? You can assign a WAV file to play when a build fails or succeeds. Just open the Control Panel, select Sounds and Audio Devices and then click the Sounds tab. Scroll down to Microsoft Development Environment. I assigned my Build Succeeded to a WAV file of Darth Vader saying "All Too Easy" and my Build Failed to a WAV file of Han Solo saying "I got a bad feeling about this."

问题回答

There is Visual Studio Ding extension.

This small extension will play notification sounds when following events occur:

  • Build Complete
    • Entering debugger mode (breakpoint hit, etc)
    • Unit tests finished to run

https://visualstudiogallery.msdn.microsoft.com/941d0ed0-1218-452e-8585-d3ac693cda17

The ToastNotifier Extension seems to work well for visual feedback.

Go to Start -> Control Panel -> Sounds and Audio Devices. Then on the Sounds tab you ll find a set of sounds for Microsoft Visual Studio in the Program Events list. You can attach a sound to build finishing, etc.

You could write a simple .bat file that you could add to the post-build events...

Here a link: Pre-build Event/Post-build Event Command Line Dialog Box

I have used this.
It s pretty neat for visual notification, while the options posted by others are all fine for audio.

Personally I just have the "Output" window turn on by default and don t use the task list. This way I can see what it is doing at all times. I find the messages from this window to be much more enlightening than the task/error list.

I use Growl with visual studio add on. It s also working with VS2013 by using this tweak.

You can also now as of VS2019 gain access to the system sounds through the UI. Go Options->Test.

You can also find more info out here: https://learn.microsoft.com/en-us/visualstudio/test/run-unit-tests-with-test-explorer?view=vs-2019#test-audio-cue

System sounds hook in Visual Studio





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签