Null reference exception if version not provided for install target
Closed this issue · 5 comments
I tried to run this program on an extension that did not have the version information provided some of the install targets and I got a null reference exception. I debugged it and the issue is in GetSupportedVersions:
string raw = node.Attributes["Version"].Value.Trim('[', '(', ']', ')');
I couldn't find a clear answer on the MSDN reference documentation on if the version is required or not in the schema. The editor for the manifest in Visual Studio doesn't make you enter something.
Version
is required
Is it possible that:
list = doc.GetElementsByTagName("<VisualStudio");
should not have the '<' in it?
@oracleguy, can you post an extension.vsixmanifest of the extension that fails?
@oracleguy , can you try again with the current trunk?
Closing due to inactivity