Is there a way to modify Visual Studio 2008 or 2010 project pre-build events from within your code in C#? Does C# have such preprocessor directives that would allow one to configure what gets run before project compilation and build?
The purpose of this is to scan the project for shader effect files (.fx) and recompile them without editing the pre-build events manually each time I add a new shader effect file. If you know anything that would favor this scenario, you're more than welcomed to contribute.