New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Item templates are missing #365
Comments
Initial comments: |
I've tracked down why this is occurring. The existing template filtering mechanism that determines what templates to show to a project doesn't understand the difference between .NET Core and .NET Framework. In the filtering process, it only looks at the TFM version number, not the full TFM. The TFM version number for us is 1.0, and the minimum for almost all the preexisting templates is 2.0. Therefore, the templates don't show up. I've tested artificially increasing our version number to 3.0, and that does cause all the missing templates to show up again. |
Great work! Sri and I talked offline, there's a few things that I see are going to need to change with the templates:
|
It appears that the file we need to edit, at least for the standard templates such as Class, is |
This is a list of all templates showing up when adding a new item in an old csproj:
|
Sri and I talked a bit offline. For now, what we're going to do is remove the min version from the templates here that we'd like to have show up. That'll get us enough filtering for it to everything to appear in preview 5, and then I'll move to higher priority stories for preview 5. Once that's completed, we'll circle back around and implement the capability-based filtering. |
@srivatsn Don't agree on the priority - well want to remove the assembly references for at least the common templates such as interface, class, etc so that you don't get an error on adding them. |
Yes I'm saying we should do the work needed to get the templates we want to show up. I was saying that if we need to introduce capabilities to filter out templates that dont apply to Core (say MDI parent form) let's instead filter for now based on TFM check and do the real work later. |
VBProj Templates:
|
The VS extensibility templates are also not showing up. |
WPF item templates will be in a future release of 16.1. Windows Forms templates are still in progress. |
Just clarifying, that this is issue is also related to unit test templates not appearing for a .NET Core Unit Test projects (Add new item)? |
@hicks86 please file a new bug around what templates you would like to see. |
Winforms fixed with AD#175581 |
I've done some spot checking, and many of the things that were previously missing are now showing up. I'm going to close this issue in favor of creating new issues for specific missing templates (if any) as they come up. |
In the latest VS builds, clicking on AddItem doesn't show most item templates. This is with the new installer and maybe some setup authoring regression.
The text was updated successfully, but these errors were encountered: