Add folders to fsharp (F#) project in visual studio 2010/2008

I recently created a new f# project in my solution and ran into a problem I faced a few months ago. I had no option on creating folders in a F# project. Well, there are 2 solutions, manual coding the config for folders or use a tool.

Here is the easier way:

  • Download the Fsharp project extender here. Install it.
  • Right click your F# project file and click "enable f# project extender".
  • Now you can right click and add a folder as you normally would in other projects.

Note: Folder order still has effect here. Folders with files in it will be compiled before other files after it.