Skip to content

Feature request for VS 2017: Folders in F# projects #2539

Closed

Description

@financial-engineer

Dear developers!
Please add IDE support for folders in F# projects by:

  • adding folders to projects,
  • adding subfolders to existing folders,
  • renaming folders,
  • moving files to folders,
  • moving folders up/down.

Expected behavior

Please implement new commands in Solution Explorer context menu:
Add Below -> New Folder,
Add Below -> Existing Folder,
Add Above -> New Folder,
Add Above -> Existing Folder.
The Remove, Delete, Move Up, Move Down commands should apply to folders as well as to files.
The Copy, Paste commands should be able to copy and paste the selected files (and folders, subfolders) to another folder of the same or different project.
The Move to Folder command is needed in Solution Explorer context menu and should be able to move the selected files (and folders, subfolders) to another folder.

Important note

Folder organization feature is not intended to change the already existing, linear order of compilation for source files in F# projects. The F# files mentioned first in the .fsproj file should be compiled first, as usual.

Known workarounds

I need to edit the .fsproj file manually (in the 21th century!, due to lack of Visual Studio support) to obtain the F# project with the folder organization I need.
For example,
I want to obtain the project with 3 folders, so I need to rewrite:

<ItemGroup>
<Compile Include="type1.fs" />
<Compile Include="type2.fs" />
<Compile Include="type3.fs" />
<Compile Include="type4.fs" />
<Compile Include="type5.fs" />
<Compile Include="type6.fs" />
<Compile Include="type7.fs" />
</ItemGroup>

in the .fsproj file as follows:

<ItemGroup>
<Compile Include="type1.fs" />
<Compile Include="Folder1\type2.fs" />
<Compile Include="Folder1\type3.fs" />
<Compile Include="Folder2\type4.fs" />
<Compile Include="Folder2\type5.fs" />
<Compile Include="Folder3\type6.fs" />
<Compile Include="Folder3\type7.fs" />
</ItemGroup>

The order of compilation remains unchanged: type1.fs, type2.fs, ... type7.fs.

Related information

This feature will help refactoring mid-size and large F# solutions (containing several dozens or hundreds of projects) by introducing meaningful folder organization in F# projects.

Activity

  1. KevinRansom commented on Mar 7, 2017

    @KevinRansom
    Contributor

    @financial-engineer

    Please let us make the move to CPS. Any work on the current project system may well end up not shipping. The work to move to CPS is just about to start.

    Kevin

  2. saul commented on Mar 7, 2017

    @saul
    Contributor

    @KevinRansom, if the work is in progress can we have a ticket (with a checklist of work that's been done) and close off the other related project system tickets?

    Exciting :)

  3. saul commented on Apr 20, 2017

    @saul
    Contributor
  4. added this to the milestone on May 2, 2017
  5. modified the milestones: , 15.3 on Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions