Build events are handy ways to perform tasks that need to be done every time a project is rebuilt. The Visual Studio IDE exposes these events through the project properties dialog for windows applications, but not for web applications. However, the IDE can be coerced into supporting build events for web applications, and it's surprisingly easy to do. Simply open your web project's .csproj file and look under the settings element for the following elements:
<VISUALSTUDIOPROJECT> <CSHARP> <BUILD> <SETTINGS> <!-- Your Build Events Here --> PreBuildEvent = "" PostBuildEvent = "" <!-- RunPostBuildEvent = "Always" | "OnBuildSuccess" | "OnOutputUpdated" --> RunPostBuildEvent = "OnBuildSuccess" </SETTINGS> </BUILD> </CSHARP></VISUALSTUDIOPROJECT>
Simply enter your command-line actions to PreBuildEvent and/or PostBuildEvent and enter the string describing the desired condition in RunPostBuildEvent. Save the file, and you're good to go.
Remember Me
a@href@title, i, strike, u
Copyright © 2003-2008 Falafel Software Inc.
Subscribe to Falafel Blogs
The opinions expressed herein are Falafel's employees own personal opinions and do not represent Falafel Software's view in any way in case they go bananas!