title: Pre Build Event: Copy Folder and it's SubFolders and files into Build Directory using XCopy
body: <p>I have Window Application and I have some plugins &amp; it's ChildPlugins which I placed in  My Application folder structure(see folder structure image). I used SVN as source control so, every folder has <code>.SVN</code> folder. </p>
  
  <p>Here is My Question:</p>
  
  <p>Below image is my directory structure for Plugins. All folder have some files related it plugins. Now I want to copy all folder (with SubFolders) &amp;  it's files to my Application  Build output path by using Pre Built Event. </p>
  
  <p><img src="https://i.stack.imgur.com/chLGp.png" alt="**Plugins Directory structure**"></p>
  
  <p>After searching on net I found that by using XCopy I can achieve what I want. By using below code I can copy Plugins directory &amp; it's files but can't able to copy it's sub folders &amp; Sub folder Files .</p>
  
  <pre><code>xcopy "$(SolutionDir)Plugins\*.*" "$(SolutionDir)Windows\Host\Host.GUI\bin\x86\$(ConfigurationName)\Plugins\" /Y/D
  </code></pre>
  
  <p>I want to copy Folder &amp; it's all subfolders with all files and want to exclude <code>.SVN</code>. Can anyone point me How can I do this?</p>
  
  <p>Thanks.</p>