How to enable adding a custom item template in a Shared project

Dave Snyder 0 Reputation points
2023-06-30T18:35:07.4466667+00:00

I have created a VSIX Project along with 6 Item Template projects. The item templates install and are accessible inside of Visual Studio, except for from Shared projects. When I try to add a new item to a Shared project, my custom items are not available. How do I make my custom items available to the Shared project?

Developer technologies | Visual Studio | Extensions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Snyder 0 Reputation points
    2023-06-30T18:59:51.78+00:00

    I was able to solve my own question. In a different forum, I found that if I add the following node to the .vstemplate file, it becomes available for Shared projects:

    <AppliesTo>SharedAssetsProject</AppliesTo>

    I had tried VisualBasic + SharedAssetsProject, but that didn't work. It was only when I did SharedAssetsPorject alone that it worked.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.