title: Pre-build event command line question
body: <p>I created two applications.(Console Appliaction: MyConApp.exe and Windows Application: MyWinApp.exe)
  Purpose, Attach MyConApp.exe to MyWinApp.exe and transfer the MyConApp.exe args with the MyWinApp's Pre-build event.</p>
  
  <p><strong>[update]</strong></p>
  
  <p><strong>MyConApp.exe</strong> is a small tool to parse a XSD file and generate a <strong>FromXSD.cs</strong> file. It worked very vell if i double click it.And <strong>myConAppArgs</strong> is <em>the XSD file path</em>.</p>
  
  <p>Now the <strong>FromXSD.cs</strong> file used by the <strong>MyWinApp.exe</strong> project. I hope to build MyWinApp.sln with the <strong>FromXSD.cs</strong> file at the building time.</p>
  
  <p>If the XSD file changed someday. I need handle the new XSD file automatically if i take use the pre-build event command line method. That's why i procedured the three steps. </p>
  
  <p><strong>My Procedure</strong></p>
  
  <p><strong>Step1.</strong></p>
  
  <p>I copied the MyConApp.exe to the same path of MyWinApp.exe.</p>
  
  <p>That is say: there are two .exe file located in the path **D:\learning\cs\MyWinApp\MyWinApp\bin\Debug**</p>
  
  <p><strong>Step2.</strong></p>
  
  <p>Open the MyWinApp project properties -> build events -> and the Pre-build event command line:</p>
  
  <p><strong>input:</strong></p>
  
  <p><code>myConApp.exe myConAppArgs</code></p>
  
  <p><strong>Step3.</strong></p>
  
  <p>Save MyWinApp project, build and run it.</p>
  
  <p>Is there any better method to do this or any stand procedure to follow? Thanks for reading and replies.</p>