diff options
Diffstat (limited to 'src/test/Example.Extension/Example.Extension.csproj')
| -rw-r--r-- | src/test/Example.Extension/Example.Extension.csproj | 22 |
1 files changed, 21 insertions, 1 deletions
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> |
