title: How can I add an existing folder structure to my visual studio project (python tools)?
body: <p>This question is essentially the same as these:</p>
  
  <p><a href="https://stackoverflow.com/questions/392473/how-do-i-add-an-existing-directory-tree-to-a-project-in-visual-studio">How do I add an existing directory tree to a project in Visual Studio?</a>
  <a href="https://stackoverflow.com/questions/57776/how-to-add-existing-item-an-entire-directory-structure-in-visual-studio">How to &quot;Add Existing Item&quot; an entire directory structure in Visual Studio?</a> </p>
  
  <p>Except the solutions don't work for me.</p>
  
  <p>It looks like another user had the exact same problem</p>
  
  <p><a href="http://pytools.codeplex.com/discussions/249455" rel="noreferrer">http://pytools.codeplex.com/discussions/249455</a></p>
  
  <p>But <a href="http://xkcd.com/979/" rel="noreferrer">http://xkcd.com/979/</a> has struck again.</p>
  
  <p>I am using Visual Studio 2010 with Python Tools for Visual Studio.</p>
  
  <p>In this project users create new folders and code and commit them to SVN.  Another user will update SVN and the new files and folders will show up in windows explorer.  The user then needs an easy way to add these folders and files to the solution.</p>
  
  <p>Putting the solution in SVN so added folders can be added to the solution before committing is not an option.  The solution is controlled in a separate area from the source. </p>
  
  <p><strong>Suggested Solution:</strong>  </p>
  
  <p><a href="https://stackoverflow.com/a/392477/606660">https://stackoverflow.com/a/392477/606660</a></p>
  
  <p><strong>Won't work because:</strong></p>
  
  <p>The "Show all files" button in the solution explorer does not show up.</p>
  
  <p><strong>Suggested Solution:</strong>  </p>
  
  <p><a href="https://stackoverflow.com/a/57778/606660">https://stackoverflow.com/a/57778/606660</a></p>
  
  <p><strong>Won't work because:</strong></p>
  
  <p>When I drag the folder onto the solution explorer pane the location the folder is dropped affects where in the solution it is nested.  If it gets dropped in the wrong folder, it shows up as a folder with the expected name and the expected contents.  This is really close to what we want, except its in the wrong folder (since I dropped it on the wrong folder, intentionally). If the folder is dragged to the correct location, it appears as a file with an exclamation point.  When you double click the "file" it says </p>
  
  <pre><code>"The item &lt;folder name&gt; does not exist in the project directory.  It may have been moved, renamed, or deleted"
  </code></pre>
  
  <p>I believe this is because VS will try to create a copy of the folder in the directory that you drag it to.  If I move the folder out of my project entirely (say to the desktop) and then drag it into the solution explorer at the proper location, it shows up as a folder in the project.  A copy of the folder is also created on disk at the location specified by the drop, with the same  name and contents.  </p>
  
  <p>So it appears that dragging and dropping a folder onto the solution explorer will create a copy of the folder on the disk in the location that you targeted in your solution when you dropped it.  If that location already has a folder of that name, the folder gets imported as a file.</p>
  
  <p><strong>My Solution</strong></p>
  
  <p>I'm using PyCharm instead, its much better.</p>