title: is there a way in Visual Studio 2013 to automatically clean a project before building it?
body: <p>I was thinking to add some code in the .csproj file in the following tag, that would automatically clean the solution before a build attempt:</p>
  
  <pre><code>  &lt;/ProjectExtensions&gt;
  &lt;Target Name="BeforeBuild"&gt;
        // Clean the project &lt;------
  &lt;/Target&gt;
  &lt;Target Name="AfterBuild"&gt;
  &lt;/Target&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>any ideas on how to achieve this?</p>