title: Run a Visual Studio custom tool at build time
body: <p>I have a script that will convert a text file into a resource file, so that I can have multiple language support by having text files for different languages converted into different resources.  Once I run the script to get the resx file, I then have to run a custom build tool (as described here:<a href="http://www.codeproject.com/KB/dotnet/customtoolsexp.aspx" rel="noreferrer">Link to Code Project</a>) in order to create the <code>Designer.cs</code> files to use the new files.</p>
  
  <p>In keeping with the philosophy that I should be able to build the entire project with a single button click, how can I remove the step where I have to explicitly call the custom build tool in order to make the codebehind files?  </p>
  
  <p>I've tried automatically deleting the <code>Designer.cs</code> files as a pre-build step, since I would think that the custom build tool would automatically run if there were no Designer.cs files, but no dice.</p>
  
  <p>So, I want my build script in Visual Studio/msbuild to do:
  1) convert text to resx (done)
  2) move resx files to appropriate directory (done)
  3) create designer.cs files using a custom build tool (not done)</p>
  
  <p>It's that last step...</p>