diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-07-22 18:12:23 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-07-22 20:13:49 +1000 |
| commit | 71802ec02bae5f882ca3cd894abc202d63da9440 (patch) | |
| tree | d121608aefd7d7258a83ee072467ee205b26eb05 /src/test/examples/LatestCoreBundleSCD | |
| parent | ab7e604a7d7b53f288b81a603c0dce1fc5c8e048 (diff) | |
| download | wix-71802ec02bae5f882ca3cd894abc202d63da9440.tar.gz wix-71802ec02bae5f882ca3cd894abc202d63da9440.tar.bz2 wix-71802ec02bae5f882ca3cd894abc202d63da9440.zip | |
Fix ManagedHost tests by using Heat to harvest the BA payloads.
Also, build all example bundles in the new examples.proj instead of the tests to speed up the solution build.
Diffstat (limited to 'src/test/examples/LatestCoreBundleSCD')
3 files changed, 43 insertions, 0 deletions
diff --git a/src/test/examples/LatestCoreBundleSCD/LatestCoreBundleSCD.wixproj b/src/test/examples/LatestCoreBundleSCD/LatestCoreBundleSCD.wixproj new file mode 100644 index 00000000..30a860ab --- /dev/null +++ b/src/test/examples/LatestCoreBundleSCD/LatestCoreBundleSCD.wixproj | |||
| @@ -0,0 +1,10 @@ | |||
| 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 | <Project Sdk="WixToolset.Sdk"> | ||
| 3 | <ItemGroup> | ||
| 4 | <BindInputPaths Include="$(OutputPath)publish\Example.LatestCoreMBA\scd" /> | ||
| 5 | <HarvestDirectory Include="$(OutputPath)publish\Example.LatestCoreMBA\scd"> | ||
| 6 | <DirectoryRefId>publish.Example.LatestCoreMBA.scd</DirectoryRefId> | ||
| 7 | <Transforms>ba.xslt</Transforms> | ||
| 8 | </HarvestDirectory> | ||
| 9 | </ItemGroup> | ||
| 10 | </Project> | ||
diff --git a/src/test/examples/LatestCoreBundleSCD/SelfContainedBundle.wxs b/src/test/examples/LatestCoreBundleSCD/SelfContainedBundle.wxs new file mode 100644 index 00000000..4b0fe38a --- /dev/null +++ b/src/test/examples/LatestCoreBundleSCD/SelfContainedBundle.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="SCDLatestCoreMBA" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="5CE5B5C7-4B6B-4B95-B297-731F1F956533"> | ||
| 5 | <BootstrapperApplicationRef Id="DotNetCoreBootstrapperApplicationHost"> | ||
| 6 | <bal:WixDotNetCoreBootstrapperApplication SelfContainedDeployment="yes" /> | ||
| 7 | <PayloadGroupRef Id="publish.Example.LatestCoreMBA.scd" /> | ||
| 8 | </BootstrapperApplicationRef> | ||
| 9 | <Chain> | ||
| 10 | <ExePackage SourceFile="c:\windows\system32\kernel32.dll" PerMachine="yes" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/test/examples/LatestCoreBundleSCD/ba.xslt b/src/test/examples/LatestCoreBundleSCD/ba.xslt new file mode 100644 index 00000000..acc7474c --- /dev/null +++ b/src/test/examples/LatestCoreBundleSCD/ba.xslt | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
| 3 | xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" | ||
| 4 | xmlns:wix="http://wixtoolset.org/schemas/v4/wxs" | ||
| 5 | > | ||
| 6 | <xsl:output method="xml" indent="yes"/> | ||
| 7 | |||
| 8 | <xsl:template match="@* | node()"> | ||
| 9 | <xsl:copy> | ||
| 10 | <xsl:apply-templates select="@* | node()"/> | ||
| 11 | </xsl:copy> | ||
| 12 | </xsl:template> | ||
| 13 | |||
| 14 | <xsl:template match="wix:Payload[@SourceFile='SourceDir\Example.LatestCoreMBA.dll']" > | ||
| 15 | <xsl:copy> | ||
| 16 | <xsl:attribute name="BAFactoryAssembly" namespace="http://wixtoolset.org/schemas/v4/wxs/bal">yes</xsl:attribute> | ||
| 17 | <xsl:apply-templates select="@* | node()"/> | ||
| 18 | </xsl:copy> | ||
| 19 | </xsl:template> | ||
| 20 | </xsl:stylesheet> | ||
