@@ -818,7 +818,7 @@ IndexForTypes CreateIndexForTypes (string dest)
818818 /// <param name="result">A typle that contains 1) the 'reltypefile', 2) the 'typefile', and 3) the file info</param>
819819 bool TryFindTypeFile ( string nsname , string typename , string basepath , out Tuple < string , string , FileInfo > result )
820820 {
821- string reltypefile = DocUtils . PathCombine ( nsname , typename + ".xml" ) ;
821+ string reltypefile = DocUtils . PathCombine ( nsname , typename . Replace ( "<>" , "<>" ) + ".xml" ) ;
822822 string typefile = Path . Combine ( basepath , reltypefile ) ;
823823 System . IO . FileInfo file = new System . IO . FileInfo ( typefile ) ;
824824
@@ -1113,7 +1113,7 @@ private void DoUpdateAssemblies (string source, string dest)
11131113 }
11141114 }
11151115
1116- private static char [ ] InvalidFilenameChars = { '\\ ' , '/' , ':' , '*' , '?' , '"' , '<' , '>' , ' |' } ;
1116+ private static char [ ] InvalidFilenameChars = { '\\ ' , '/' , ':' , '*' , '?' , '"' , '|' } ;
11171117
11181118 private void DoUpdateAssembly ( AssemblySet assemblySet , AssemblyDefinition assembly , XmlElement index_types , string source , string dest , HashSet < string > goodfiles )
11191119 {
@@ -1437,7 +1437,7 @@ private static void CleanupIndexTypes (XmlElement index_types, HashSet<string> g
14371437 MyXmlNodeList remove = new MyXmlNodeList ( ) ;
14381438 foreach ( XmlElement typenode in index_types . SelectNodes ( "Namespace/Type" ) )
14391439 {
1440- string fulltypename = Path . Combine ( ( ( XmlElement ) typenode . ParentNode ) . GetAttribute ( "Name" ) , typenode . GetAttribute ( "Name" ) + ".xml" ) ;
1440+ string fulltypename = Path . Combine ( ( ( XmlElement ) typenode . ParentNode ) . GetAttribute ( "Name" ) , typenode . GetAttribute ( "Name" ) . Replace ( "<>" , "<>" ) + ".xml" ) ;
14411441 if ( ! goodfiles . Contains ( fulltypename ) )
14421442 {
14431443 remove . Add ( typenode ) ;
0 commit comments