torsdag 31 juli 2008

Exlude files and directories when building deploy project

Its quite ezy ®.


  • Rightclick the deployment project and click "Open project file".
  • Insert the following code (example):
      <ItemGroup>
    <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\Test\**\*.*"/>
    <ExcludeFromBuild
    Include="$(SourceWebPhysicalPath)\Images\**\*.*"/>
    </ItemGroup>


  • Done! Now it wont copy all those directories to your release folder, in the long run it will save you a lifetime of waiting.


Inga kommentarer: