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 }}
Repository navigation
VFT: add new item to project categories doesn't have a root element #804
Can you explain and/or add details how to repro? I tried this with VS2015, Enterprise Ed, an F# 4.0 project (w/o Update 1), F# PowerTools installed, and I right-click in the solution like this:
Then I get the following screen (which, also surprisingly, shows two identical items and when selecting either of them, they always add the wrong standard open-statements open Android.xxx, but that may be another issue). It automatically selects the F# templates, and it appears to have a "root":
I get the same on two machines on which I just installed Community Edition (Update 1).
The screen shot I took was on pretty much vanilla VS that I just installed.
I can't repro on VS 2013 Professional installed on one of my machines and will check tomorrow on the other.
I also notice that in a websharper project (I installed the vsix after I reported this bug so it's not related to it) the dialog is just empty and I can't use the Add New Item dialog on the project, but it works for other projects in the same solution.
Actually, when I first launch Visual Studio, I pick the C++ environment (I'm used to the keyboard shortcuts) and it has an effect on the template tree.
I think that might be the reason why I'm seeing this.
Activity
eriawan commentedon Dec 17, 2015
@smoothdeveloper
This is very cool and excellent bug report! 👍
I often notice this, but I didn't realize that F# project's item template behave differently from C#.
My guess is, it's in the F# project system.
Maybe it's time to revisit the use of Visual Studio CPS instead of the current F# project model.
abelbraaksma commentedon Dec 23, 2015
Can you explain and/or add details how to repro? I tried this with VS2015, Enterprise Ed, an F# 4.0 project (w/o Update 1), F# PowerTools installed, and I right-click in the solution like this:
Then I get the following screen (which, also surprisingly, shows two identical items and when selecting either of them, they always add the wrong standard open-statements
open Android.xxx, but that may be another issue). It automatically selects the F# templates, and it appears to have a "root":smoothdeveloper commentedon Dec 23, 2015
I get the same on two machines on which I just installed Community Edition (Update 1).
The screen shot I took was on pretty much vanilla VS that I just installed.
I can't repro on VS 2013 Professional installed on one of my machines and will check tomorrow on the other.
I also notice that in a websharper project (I installed the vsix after I reported this bug so it's not related to it) the dialog is just empty and I can't use the Add New Item dialog on the project, but it works for other projects in the same solution.
smoothdeveloper commentedon Dec 25, 2015
Actually, when I first launch Visual Studio, I pick the C++ environment (I'm used to the keyboard shortcuts) and it has an effect on the template tree.
I think that might be the reason why I'm seeing this.
smoothdeveloper commentedon Apr 7, 2016
Any update on this issue with VS 15 preview?
On a default install with F# ticked, after choosing C++ style on first launch splash screen, is the hierarchy correct?
saul commentedon Jan 2, 2017
This is what I see on VS 2017 RC and master, but I don't recall what I selected at the first launch splash screen unfortunately:
smoothdeveloper commentedon Feb 2, 2017
@saul, this seems to work properly in VS2017, I've picked C++ environment.