views:

35

answers:

0

OK, this is somewhat frustrating. We have a folder containing custom code snippets used by our company to ensure coding standards and the like. I was documenting the process of actually adding said folder to Visual Studio 2008, when I accidentally added the wrong folder (I added the folder one level up). Since we have both C# and VB snippets in separate subdirectories underneath said top-level folder, I now get "Missing or unspecified Language attribute" errors for the two C# snippets that were mistakenly added to the VB folder.

How do I get rid of these? They don't show up in the Code Snippets Manager under VB, since that only shows actual matching snippets. I did some tinkering and looking around, and found a large XML file in AppData\Local\Microsoft\VisualStudio\9.0\1033 called ExpansionsXML.xml. Finding the entire directory added in there under VB snippets, I thought I had it made and deleted that node. However, when I restart Visual Studio, the first time I load a project, I get a message that Code Snippet folders are being indexed (or some such) and they just appear again (along with the Language attribute messages, from above).

So it would seem that this XML file is just an index, and not the actual configuration file indicating what folders are searched for snippets. That must be somewhere else. I did some more looking around, yet I can't seem to find it anywhere. Is it a registry entry, by any chance? Our network admin has disabled registry editing, so I can't go looking around to see if anything turns up, but if that turns out to be the case, I'll get it re-enabled and do the delete. If it's a file or folder, can anybody point me in the right direction?

Any help would be much appreciated. Thanks!