I have a project which uses a system to authorise users. While I make some updates I want to to be able to set IsAdmin(username) to always return true. I wont forget to remove this, however it would be helpful if there was functionality in visual studio, like the //TODO, which created a warning or on build or publishing. Does anyone know of any functionality like this?
Thanks
Your C# and VB (and C++ in VS 2010) project files are MsBuild files and are built using the MsBuild engine. You could edit your project file in a text editor and add a warning that is conditional on a property being set.
You could also make it an error which stops the build using the Error task.