home links tips
code users tools tutorials projects web help design
mudabone
suletzki trans48
nutrition reality
MarthaAttire!
| |
In some projects build events aren't available from the IDE (WebApplications, WebServices) you can still use them though.
- Put your DOS commands in .bat file in the main project directory
- Edit the csproj file
- Edit pre/postBuldEvent in the csproj file (VisualStudioProject\CSHARP\Build\Settings)
- Example: PostBuildEvent = "..\myPostBuildEvent.bat"
- To get around "BuildEvent failed" errors in the build (i.e.
ignore all dos errors) put Echo 0 (zero) at the end of your .bat file.
- Once you test your .bat file make sure to put a "cd .." at
the top of it so it'll run in the right directory (since it's being
launched from the bin directory)
back to Tips
Last Modified 1/28/05 2:04 PM
| Hide Tools
|