diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-03-27 13:54:56 +1000 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-03-30 21:30:04 +1000 |
commit | 0baf6e26ec7ab2ff0b6ad36e9d44f3d68819b5d6 (patch) | |
tree | 1ef577d0246b662f4a8bda0ed935e987f03562a0 /src/test/Example.Extension/ExampleTupleDefinitions.cs | |
parent | afbc6889c73d58136cb8851858ca3c17f41dc2c5 (diff) | |
download | wix-0baf6e26ec7ab2ff0b6ad36e9d44f3d68819b5d6.tar.gz wix-0baf6e26ec7ab2ff0b6ad36e9d44f3d68819b5d6.tar.bz2 wix-0baf6e26ec7ab2ff0b6ad36e9d44f3d68819b5d6.zip |
Add ability for extensions to create custom bundle searches.
This required creating BundleExtensionData.xml.
Diffstat (limited to 'src/test/Example.Extension/ExampleTupleDefinitions.cs')
-rw-r--r-- | src/test/Example.Extension/ExampleTupleDefinitions.cs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/test/Example.Extension/ExampleTupleDefinitions.cs b/src/test/Example.Extension/ExampleTupleDefinitions.cs index 4775b827..b2c8c484 100644 --- a/src/test/Example.Extension/ExampleTupleDefinitions.cs +++ b/src/test/Example.Extension/ExampleTupleDefinitions.cs | |||
@@ -1,8 +1,9 @@ | |||
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. | 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 | 2 | ||
3 | namespace Example.Extension | 3 | namespace Example.Extension |
4 | { | 4 | { |
5 | using WixToolset.Data; | 5 | using WixToolset.Data; |
6 | using WixToolset.Data.Burn; | ||
6 | 7 | ||
7 | public static class ExampleTupleDefinitions | 8 | public static class ExampleTupleDefinitions |
8 | { | 9 | { |
@@ -16,5 +17,19 @@ namespace Example.Extension | |||
16 | new IntermediateFieldDefinition(nameof(ExampleTupleFields.Value), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(ExampleTupleFields.Value), IntermediateFieldType.String), |
17 | }, | 18 | }, |
18 | typeof(ExampleTuple)); | 19 | typeof(ExampleTuple)); |
20 | |||
21 | public static readonly IntermediateTupleDefinition ExampleSearch = new IntermediateTupleDefinition( | ||
22 | nameof(ExampleSearch), | ||
23 | new[] | ||
24 | { | ||
25 | new IntermediateFieldDefinition(nameof(ExampleTupleFields.Example), IntermediateFieldType.String), | ||
26 | new IntermediateFieldDefinition(nameof(ExampleSearchTupleFields.SearchFor), IntermediateFieldType.String), | ||
27 | }, | ||
28 | typeof(ExampleSearchTuple)); | ||
29 | |||
30 | static ExampleTupleDefinitions() | ||
31 | { | ||
32 | ExampleSearch.AddTag(BurnConstants.BundleExtensionSearchTupleDefinitionTag); | ||
33 | } | ||
19 | } | 34 | } |
20 | } | 35 | } |