diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-09-20 21:45:59 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-09-21 08:06:25 -0700 |
commit | e4e6423ed5f5ba51c500780b5ce72fcd64d63156 (patch) | |
tree | cded6512b7591e569aeeb78419ca0007f7dced01 /tools/Sandcastle/Source/BuildAssembler/BuildComponents/HxfGeneratorComponent.cs | |
parent | bbe3f9cc9c8a1e5909273c1a162a63ea7a66afd8 (diff) | |
download | DotNetOpenAuth-e4e6423ed5f5ba51c500780b5ce72fcd64d63156.zip DotNetOpenAuth-e4e6423ed5f5ba51c500780b5ce72fcd64d63156.tar.gz DotNetOpenAuth-e4e6423ed5f5ba51c500780b5ce72fcd64d63156.tar.bz2 |
Upgraded to latest Sandcastle changeset (26202).
Diffstat (limited to 'tools/Sandcastle/Source/BuildAssembler/BuildComponents/HxfGeneratorComponent.cs')
-rw-r--r-- | tools/Sandcastle/Source/BuildAssembler/BuildComponents/HxfGeneratorComponent.cs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/tools/Sandcastle/Source/BuildAssembler/BuildComponents/HxfGeneratorComponent.cs b/tools/Sandcastle/Source/BuildAssembler/BuildComponents/HxfGeneratorComponent.cs index 65ba716..176ce97 100644 --- a/tools/Sandcastle/Source/BuildAssembler/BuildComponents/HxfGeneratorComponent.cs +++ b/tools/Sandcastle/Source/BuildAssembler/BuildComponents/HxfGeneratorComponent.cs @@ -1,5 +1,8 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// +// Copyright © Microsoft Corporation. +// This source file is subject to the Microsoft Permissive License. +// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx. +// All other rights reserved. + using System; using System.IO; using System.Text; @@ -59,7 +62,7 @@ namespace Microsoft.Ddue.Tools { FileCreatedEventArgs fe = e as FileCreatedEventArgs; if (fe == null) return; - string path = Path.Combine(fe.HxfPath, outputValue); + string path = Path.Combine(fe.HxfPath, outputValue).ToLower(); XmlWriter tempWriter; if (!writers.TryGetValue(path, out tempWriter)) { @@ -80,10 +83,12 @@ namespace Microsoft.Ddue.Tools { writer.WriteEndElement(); } - public override void Dispose() { - writer.WriteEndDocument(); - writer.Close(); - base.Dispose(); + protected override void Dispose(bool disposing) { + if (disposing) { + writer.WriteEndDocument(); + writer.Close(); + } + base.Dispose(disposing); } public void WriteFile(string path) { |