Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add an existing folder to F#.NET project in Visual Studio Ultimate 2013?

I would like to add an existing folder to my F#.NET project in Visual Studio Ultimate 2013.

Several Stackoverflow questions deal with the issue, most of them mentioning a mythical 'Show All Files' icon as a remedy at the top of Solution Explorer.

However, I do not have such an icon, nor can I conjure one. Whether I click on my Solution or my Project at hand, the top of Solution Explorer remains the same, both lacking a 'Show All Files':

enter image description here

I tried to implement Rodolfo Maayos' solution to no avail - I still get the above Solution Explorer top.

Folder drag-and-drop won't work, nor any other tricks from Stackoverflow or the net, or the ones I tried to come up with...

Adding a folder to a project is truly the pinnacle of programming know-how, so I completely understand why Microsoft made it so extremely hard to achieve it in Visual Studio Ultimate 2013.

like image 718
prokilomer Avatar asked May 20 '14 20:05

prokilomer


People also ask

How do I add an existing folder to Visual Studio 2022?

Adding Files Right click the project or contained folder and choose Add | Existing Item... . Use Show All Files . Click on files or folders you would like to add to the project and choose Include In Project . Drag and drop files and folders from Windows Explorer.

Can you add folders to C drive?

1) navigate to drive C by clicking on the My Computer icon. 2) Right click drive C: to open it. 3) In C: drive right click and select New, choose the folder option. 4) A new folder will appear, Right click it and rename it with your desired name.


Video Answer


2 Answers

'Show All Files' functionality doesn't work for F# project since F# project system hasn't implemented it yet.

In Visual F# Power Tools, we have added primitive menu items to support folders. Adding an existing folder could be done by:

  • 'F# Power Tools --> New Folder' and choose the existing folder name on disk (the menu item is a bit counter-intuitive in this scenario)
  • 'Add --> Existing Item' and select all files you would like to add.

More detailed description of folder support could be found at http://fsprojects.github.io/VisualFSharpPowerTools/folderorganization.html.

The power tools extension could be downloaded from http://visualstudiogallery.msdn.microsoft.com/136b942e-9f2c-4c0b-8bac-86d774189cff. Let us know if it works for you.

like image 67
pad Avatar answered Oct 22 '22 18:10

pad


Possibly not the best answer, but in cases like this, if all else fails, edit the .proj file manually.

like image 27
N_A Avatar answered Oct 22 '22 18:10

N_A