Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mdoc
diff options
context:
space:
mode:
authorRanhaoXu <v-jex@microsoft.com>2021-04-20 00:01:26 +0300
committerGitHub <noreply@github.com>2021-04-20 00:01:26 +0300
commitaff9707cc3ae5724462591ab6517e6f8ed7e9aa1 (patch)
tree7b9c7fa7b18941ffe1ccf7c99fa81f1f0fac0420 /mdoc
parentb65966eace83a9ffa5ba5bb5dc2a12754084bd29 (diff)
Improved filehandling around typemap file copy
Update MDocUpdater.cs (#547)
Diffstat (limited to 'mdoc')
-rw-r--r--mdoc/Mono.Documentation/MDocUpdater.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc/Mono.Documentation/MDocUpdater.cs b/mdoc/Mono.Documentation/MDocUpdater.cs
index d75db09e..eac9ddd7 100644
--- a/mdoc/Mono.Documentation/MDocUpdater.cs
+++ b/mdoc/Mono.Documentation/MDocUpdater.cs
@@ -320,6 +320,8 @@ namespace Mono.Documentation
if (File.Exists(typeMapPath))
{
Console.WriteLine($"Loading typemap file at {typeMapPath}");
+ if (!Directory.Exists(srcPath))
+ Directory.CreateDirectory(srcPath);
File.Copy(typeMapPath, Path.Combine(srcPath, "TypeMap.xml"), true);
TypeMap map = TypeMap.FromXml(typeMapPath);
this.TypeMap = map;