Quantcast
Channel: What entry to make in .pkgdef for a .vsix Visual Studio Snippets Extension - Stack Overflow
Viewing all articles
Browse latest Browse all 2

What entry to make in .pkgdef for a .vsix Visual Studio Snippets Extension

$
0
0

I have a .vsix solution in Visual Studio 2017 for deploying 4 folders of snippets.

Here is what it looks like

Does each folder that has it's own xml or C# snippets need it's own .pkgdef file? Or do we just need a single .pkgdef file located directly under CompanySnippets?

I ask because we had one .pkgdef file with the following entries

[$RootKey$\Languages\CodeExpansions\CSharp\Paths]"CompanyCodeSnippets"="$PackageFolder$"[$RootKey$\Languages\CodeExpansions\Xml\Paths]"CompanyCodeSnippets"="$PackageFolder$"

But we are getting unrecognized language problems for the snippets and I think I've troubleshot it down to the .pkgdef file.

If I make a seperate .pkgdef for each folder of snippets, I will get them to show up.

I'm confused on how to look at the value of $RootKey$, and what the $PackageFolder$ is really dowing. Not much documentation on these values other than what MS says they are. I was debugging VS 2017 and that should be at Registry Computer\HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\15.0 , but that registry has no Languages\CodeExpansion, so I'm not sure if that is part of our problem.

And I'm also not sure if $PackageFolder$ is grabbing snippets from subfolders.

Any help is much appreciated.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images