Thanks Henry it's interesting because the Extension I am writing is a CodeSnippet Viewer/Editor for the new
AvrStudio 5.0[
^] and I was fashioning it after the SnippetDesigner so thanks for the link.
Interestingly I found a solution if you replace this;
[Serializable]
[XmlRootAttribute("CodeSnippets", Namespace="xmlns", IsNullable = false)]
public class SnippetItem
{
public SnippetItem()
{
Header = new SnippetHeader();
}
For this it works but this assumes that the namespace will be there if not you get the same type of exception as without
[XmlType(Namespace = "http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet")]
[XmlRoot(ElementName = "CodeSnippets", Namespace = "http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet", IsNullable = false)]
public class SnippetItem
{
public SnippetItem()
{
Header = new SnippetHeader();
}