@@ -555,14 +555,14 @@ private static XPathDocument GetXPathDocument(Assembly asm) {
555555
556556 string baseDir = Path . GetDirectoryName ( location ) ;
557557 string baseFile = Path . GetFileNameWithoutExtension ( location ) + ".xml" ;
558- string xml = Path . Combine ( Path . Combine ( baseDir , ci . Name ) , baseFile ) ;
558+ string xml = Path . Combine ( baseDir , ci . Name , baseFile ) ;
559559
560560 bool isRef = false ;
561561
562562 if ( ! File . Exists ( xml ) ) {
563563 int hyphen = ci . Name . IndexOf ( '-' ) ;
564564 if ( hyphen != - 1 ) {
565- xml = Path . Combine ( Path . Combine ( baseDir , ci . Name . Substring ( 0 , hyphen ) ) , baseFile ) ;
565+ xml = Path . Combine ( baseDir , ci . Name . Substring ( 0 , hyphen ) , baseFile ) ;
566566 }
567567 if ( ! File . Exists ( xml ) ) {
568568 xml = Path . Combine ( baseDir , baseFile ) ;
@@ -571,10 +571,8 @@ private static XPathDocument GetXPathDocument(Assembly asm) {
571571 // On .NET 4.0 documentation is in the reference assembly location
572572 // for 64-bit processes, we need to look in Program Files (x86)
573573 xml = Path . Combine (
574- Path . Combine (
575- Environment . GetFolderPath ( Environment . Is64BitProcess ? Environment . SpecialFolder . ProgramFilesX86 : Environment . SpecialFolder . ProgramFiles ) ,
576- _frameworkReferencePath
577- ) ,
574+ Environment . GetFolderPath ( Environment . Is64BitProcess ? Environment . SpecialFolder . ProgramFilesX86 : Environment . SpecialFolder . ProgramFiles ) ,
575+ _frameworkReferencePath ,
578576 baseFile
579577 ) ;
580578 isRef = true ;
0 commit comments