diff options
author | Bob Arnson <bob@firegiant.com> | 2020-03-17 21:10:57 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2020-03-17 21:13:26 -0400 |
commit | 9240b527b9b204764830b578ef41a5b880a0bda4 (patch) | |
tree | f6e039c96c09f17f314fdd59b55033986664859d | |
parent | ff99718c7f6dd09b6d42c9ef201955cedd81ad86 (diff) | |
download | wix-9240b527b9b204764830b578ef41a5b880a0bda4.tar.gz wix-9240b527b9b204764830b578ef41a5b880a0bda4.tar.bz2 wix-9240b527b9b204764830b578ef41a5b880a0bda4.zip |
Partial WixPdbs stop the backend before binding.
-rw-r--r-- | src/WixToolset.Data/PdbType.cs | 19 | ||||
-rw-r--r-- | src/WixToolset.Data/WixOutput.cs | 6 |
2 files changed, 24 insertions, 1 deletions
diff --git a/src/WixToolset.Data/PdbType.cs b/src/WixToolset.Data/PdbType.cs new file mode 100644 index 00000000..55d7f24e --- /dev/null +++ b/src/WixToolset.Data/PdbType.cs | |||
@@ -0,0 +1,19 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Data | ||
4 | { | ||
5 | /// <summary> | ||
6 | /// Platforms supported by compiler. | ||
7 | /// </summary> | ||
8 | public enum PdbType | ||
9 | { | ||
10 | /// <summary>A .wixpdb file matching the generated output (default).</summary> | ||
11 | Full, | ||
12 | |||
13 | /// <summary>No .wixpdb file.</summary> | ||
14 | None, | ||
15 | |||
16 | /// <summary>A .wixpdb file with partial, pre-bind data. No other output will be generated.</summary> | ||
17 | Partial, | ||
18 | } | ||
19 | } | ||
diff --git a/src/WixToolset.Data/WixOutput.cs b/src/WixToolset.Data/WixOutput.cs index bb7a9a70..1810862a 100644 --- a/src/WixToolset.Data/WixOutput.cs +++ b/src/WixToolset.Data/WixOutput.cs | |||
@@ -46,7 +46,11 @@ namespace WixToolset.Data | |||
46 | /// <returns>Newly created <c>WixOutput</c>.</returns> | 46 | /// <returns>Newly created <c>WixOutput</c>.</returns> |
47 | public static WixOutput Create(string path) | 47 | public static WixOutput Create(string path) |
48 | { | 48 | { |
49 | var uri = new Uri(Path.GetFullPath(path)); | 49 | var fullPath = Path.GetFullPath(path); |
50 | |||
51 | Directory.CreateDirectory(Path.GetDirectoryName(fullPath)); | ||
52 | |||
53 | var uri = new Uri(fullPath); | ||
50 | 54 | ||
51 | var stream = File.Create(path); | 55 | var stream = File.Create(path); |
52 | 56 | ||