user3610920 February 2016

Notification in Visual Studio

I need to troubleshoot my project automatically when the project is built. i.e: I have referred some assemblies in my project.i need to refer those assemblies in some other part of my project such as web.config file. if i missed any reference there i need to be notified by Visual studio while compilation. Any ways to achieve this? how to notify Visual Studio Dynamically?

Answers


Neil February 2016

Take a look at this article. In your prebuild, you can add a script that checks for the existence of that file. If it doesn't find it, then you call exit 1, which halts the build. Accompany that with an echo of some sort and you have the makings of a simple check and notification in Visual Studio during your build.

Post Status

Asked in February 2016
Viewed 3,383 times
Voted 12
Answered 1 times

Search




Leave an answer