Browse Source

You could not include a partial XML file in an .addin file using the "Include" element

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1700 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Scott Ferrett 19 years ago
parent
commit
a36634e8a9
  1. 4
      src/Main/Core/Project/Src/AddInTree/AddIn/AddIn.cs

4
src/Main/Core/Project/Src/AddInTree/AddIn/AddIn.cs

@ -192,7 +192,9 @@ namespace ICSharpCode.Core @@ -192,7 +192,9 @@ namespace ICSharpCode.Core
throw new AddInLoadException("Cannot use include nodes when hintPath was not specified (e.g. when AddInManager reads a .addin file)!");
}
string fileName = Path.Combine(hintPath, reader.GetAttribute(0));
using (XmlTextReader includeReader = new XmlTextReader(fileName)) {
XmlReaderSettings xrs = new XmlReaderSettings();
xrs.ConformanceLevel = ConformanceLevel.Fragment;
using (XmlReader includeReader = XmlTextReader.Create(fileName, xrs)) {
SetupAddIn(includeReader, addIn, Path.GetDirectoryName(fileName));
}
break;

Loading…
Cancel
Save