diff options
Diffstat (limited to 'src/test/Example.Extension')
-rw-r--r-- | src/test/Example.Extension/Data/example.wxs | 3 | ||||
-rw-r--r-- | src/test/Example.Extension/Example.Extension.csproj | 22 | ||||
-rw-r--r-- | src/test/Example.Extension/ExampleExtensionData.cs | 2 |
3 files changed, 25 insertions, 2 deletions
diff --git a/src/test/Example.Extension/Data/example.wxs b/src/test/Example.Extension/Data/example.wxs index 53531e99..cb100adf 100644 --- a/src/test/Example.Extension/Data/example.wxs +++ b/src/test/Example.Extension/Data/example.wxs | |||
@@ -5,4 +5,7 @@ | |||
5 | 5 | ||
6 | <Binary Id="BinFromWir" SourceFile="example.txt" /> | 6 | <Binary Id="BinFromWir" SourceFile="example.txt" /> |
7 | </Fragment> | 7 | </Fragment> |
8 | <Fragment> | ||
9 | <BootstrapperApplication Id="fakeba" SourceFile="example.txt" /> | ||
10 | </Fragment> | ||
8 | </Wix> | 11 | </Wix> |
diff --git a/src/test/Example.Extension/Example.Extension.csproj b/src/test/Example.Extension/Example.Extension.csproj index 32560e60..e9483c72 100644 --- a/src/test/Example.Extension/Example.Extension.csproj +++ b/src/test/Example.Extension/Example.Extension.csproj | |||
@@ -9,11 +9,31 @@ | |||
9 | </PropertyGroup> | 9 | </PropertyGroup> |
10 | 10 | ||
11 | <ItemGroup> | 11 | <ItemGroup> |
12 | <EmbeddedResource Include="Data\Example.wir" /> | 12 | <ExtensionWxs Include="Data\example.wxs" /> |
13 | </ItemGroup> | 13 | </ItemGroup> |
14 | 14 | ||
15 | <ItemGroup> | 15 | <ItemGroup> |
16 | <PackageReference Include="WixToolset.Extensibility" Version="4.0.*" /> | 16 | <PackageReference Include="WixToolset.Extensibility" Version="4.0.*" /> |
17 | </ItemGroup> | 17 | </ItemGroup> |
18 | 18 | ||
19 | <ItemGroup> | ||
20 | <ProjectReference Include="..\CompileCoreTestExtensionWixlib\CompileCoreTestExtensionWixlib.csproj"> | ||
21 | <Private>false</Private> | ||
22 | </ProjectReference> | ||
23 | </ItemGroup> | ||
24 | |||
25 | <Target Name="SetExtensionWixlib"> | ||
26 | <PropertyGroup> | ||
27 | <CompileWixlibExePath>$(OutputPath)..\net461\CompileCoreTestExtensionWixlib.exe</CompileWixlibExePath> | ||
28 | <WixlibPath>$(IntermediateOutputPath)Example.wixlib</WixlibPath> | ||
29 | </PropertyGroup> | ||
30 | |||
31 | <ItemGroup> | ||
32 | <EmbeddedResource Include="$(WixlibPath)" /> | ||
33 | </ItemGroup> | ||
34 | </Target> | ||
35 | |||
36 | <Target Name="BuildExtensionWixlib" AfterTargets="ResolveProjectReferences" DependsOnTargets="SetExtensionWixlib" Inputs="@(ExtensionWxs)" Outputs="$(WixlibPath)"> | ||
37 | <Exec Command='$(CompileWixlibExePath) "$(IntermediateOutputPath)\" "$(WixlibPath)" "@(ExtensionWxs)"' /> | ||
38 | </Target> | ||
19 | </Project> | 39 | </Project> |
diff --git a/src/test/Example.Extension/ExampleExtensionData.cs b/src/test/Example.Extension/ExampleExtensionData.cs index 724f9eea..de0b8899 100644 --- a/src/test/Example.Extension/ExampleExtensionData.cs +++ b/src/test/Example.Extension/ExampleExtensionData.cs | |||
@@ -11,7 +11,7 @@ namespace Example.Extension | |||
11 | 11 | ||
12 | public Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions) | 12 | public Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions) |
13 | { | 13 | { |
14 | return Intermediate.Load(typeof(ExampleExtensionData).Assembly, "Example.Extension.Data.Example.wir", tupleDefinitions); | 14 | return Intermediate.Load(typeof(ExampleExtensionData).Assembly, "Example.Extension.Example.wixlib", tupleDefinitions); |
15 | } | 15 | } |
16 | 16 | ||
17 | public bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) | 17 | public bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) |