diff options
author | Rob Mensching <rob@firegiant.com> | 2018-08-01 03:11:58 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2018-08-01 03:11:58 -0700 |
commit | b54516035b4ebbfbd8899b26de501bfa13f53e8b (patch) | |
tree | 6b48d5d6d01131a533a81066c00701898a6b28b2 /src/WixToolset.Core | |
parent | 52005c7e6917f9866dd0b0de6993def16a72ed4b (diff) | |
download | wix-b54516035b4ebbfbd8899b26de501bfa13f53e8b.tar.gz wix-b54516035b4ebbfbd8899b26de501bfa13f53e8b.tar.bz2 wix-b54516035b4ebbfbd8899b26de501bfa13f53e8b.zip |
Add CreateGuid() to IBackendHelper to make Uuid helper internal
Diffstat (limited to 'src/WixToolset.Core')
-rw-r--r-- | src/WixToolset.Core/ExtensibilityServices/BackendHelper.cs | 5 | ||||
-rw-r--r-- | src/WixToolset.Core/Uuid.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/WixToolset.Core/ExtensibilityServices/BackendHelper.cs b/src/WixToolset.Core/ExtensibilityServices/BackendHelper.cs index 0e5c4b5b..0cda4437 100644 --- a/src/WixToolset.Core/ExtensibilityServices/BackendHelper.cs +++ b/src/WixToolset.Core/ExtensibilityServices/BackendHelper.cs | |||
@@ -36,6 +36,11 @@ namespace WixToolset.Core.ExtensibilityServices | |||
36 | }; | 36 | }; |
37 | } | 37 | } |
38 | 38 | ||
39 | public string CreateGuid(Guid namespaceGuid, string value) | ||
40 | { | ||
41 | return Uuid.NewUuid(namespaceGuid, value).ToString("B").ToUpperInvariant(); | ||
42 | } | ||
43 | |||
39 | private string GetValidatedFullPath(SourceLineNumber sourceLineNumbers, string path) | 44 | private string GetValidatedFullPath(SourceLineNumber sourceLineNumbers, string path) |
40 | { | 45 | { |
41 | try | 46 | try |
diff --git a/src/WixToolset.Core/Uuid.cs b/src/WixToolset.Core/Uuid.cs index 0501c285..c93d134d 100644 --- a/src/WixToolset.Core/Uuid.cs +++ b/src/WixToolset.Core/Uuid.cs | |||
@@ -10,7 +10,7 @@ namespace WixToolset | |||
10 | /// <summary> | 10 | /// <summary> |
11 | /// Implementation of RFC 4122 - A Universally Unique Identifier (UUID) URN Namespace. | 11 | /// Implementation of RFC 4122 - A Universally Unique Identifier (UUID) URN Namespace. |
12 | /// </summary> | 12 | /// </summary> |
13 | public static class Uuid | 13 | internal static class Uuid |
14 | { | 14 | { |
15 | /// <summary> | 15 | /// <summary> |
16 | /// Creates a version 3 name-based UUID. | 16 | /// Creates a version 3 name-based UUID. |