You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.
I notice when I create a new F# class lib project and then remove the ProjectName.fs and Script.fsx files from it, I can't then add new files to the project.
Expected Behavior
"Add files to project" should still add files to the project even if there are no files currently in the project.
Current Behavior
If all files are removed from the project, there's an empty ItemGroup tag in the .fsproj file that apparently can't any longer have entries added to it.
Possible Solution
If there's no ItemGroup to add a file to, look for an empty one and add it to that. If there isn't an empty one, add a new ItemGroup.
Steps to Reproduce (for bugs)
Create a new F# class lib project.
Remove the ProjectName.fs and Script.fsx files from the project.
Create a new Foo.fs file
Try to add Foo.fs to the project
Context
In general, when I create a new project I don't necessarily want ProjectName.fs and Script.fsx files at the top level. I like to create modules in subdirectories.
Your Environment
I'm using Ionide 2.23.7 on VS Code 1.10.1 (on macOS Sierra). It's unclear to me how Forge is integrated there or what version is used.
The text was updated successfully, but these errors were encountered:
Tarmil
added a commit
to Tarmil/Forge
that referenced
this issue
Apr 29, 2017
I notice when I create a new F# class lib project and then remove the ProjectName.fs and Script.fsx files from it, I can't then add new files to the project.
Expected Behavior
"Add files to project" should still add files to the project even if there are no files currently in the project.
Current Behavior
If all files are removed from the project, there's an empty ItemGroup tag in the .fsproj file that apparently can't any longer have entries added to it.
Possible Solution
If there's no ItemGroup to add a file to, look for an empty one and add it to that. If there isn't an empty one, add a new ItemGroup.
Steps to Reproduce (for bugs)
Context
In general, when I create a new project I don't necessarily want ProjectName.fs and Script.fsx files at the top level. I like to create modules in subdirectories.
Your Environment
I'm using Ionide 2.23.7 on VS Code 1.10.1 (on macOS Sierra). It's unclear to me how Forge is integrated there or what version is used.
The text was updated successfully, but these errors were encountered: