By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,281 Members | 2,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,281 IT Pros & Developers. It's quick & easy.

Code Snippets

Expert Mod 5K+
P: 9,731
I'm attempting to supplement the help for my code by providing other developers with code snippets that demonstrate how to use my classes/method.

I've created a .snippet file and have placed it in the "<Visual Studio Folder>\Code Snippets\Visual Basic\My Snippets" folder.

I've used the Code Snippets Manager and ensured that it included this folder so that I can access the snippets.

Everything works well when I have 1 <CodeSnippet> tag within the <CodeSnippets> tag....

When I add more than one <CodeSnippet> tag to the file (each with their own title, and their own code example) I'm experiencing something strange....

When I use the code snippet only the first code snippet in the file shows up. When I insert this snippet the code in the other <CodeSnippet> tags also appears.

Do you have to have a separate XML .snippet file for each code snippet you want to make available?

When I read the code schema documentation it seems to me that I can put all of my snippets into one XML file.

What am I not getting here?


Jul 28 '09 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 7,872
They all have the correct start and end tag format?
(I had to go look these things up, never heard of them before)
Jul 29 '09 #2

Expert Mod 5K+
P: 9,731
Yuppers : )
Jul 29 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.