diff options
author | RanhaoXu <v-jex@microsoft.com> | 2021-04-20 00:01:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 00:01:26 +0300 |
commit | aff9707cc3ae5724462591ab6517e6f8ed7e9aa1 (patch) | |
tree | 7b9c7fa7b18941ffe1ccf7c99fa81f1f0fac0420 /mdoc | |
parent | b65966eace83a9ffa5ba5bb5dc2a12754084bd29 (diff) |
Improved filehandling around typemap file copy
Update MDocUpdater.cs (#547)
Diffstat (limited to 'mdoc')
-rw-r--r-- | mdoc/Mono.Documentation/MDocUpdater.cs | 2 |
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; |