aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/EarliestCoreBundleSCD
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/examples/EarliestCoreBundleSCD')
-rw-r--r--src/test/examples/EarliestCoreBundleSCD/EarliestCoreBundleSCD.wixproj10
-rw-r--r--src/test/examples/EarliestCoreBundleSCD/SelfContainedBundle.wxs13
-rw-r--r--src/test/examples/EarliestCoreBundleSCD/ba.xslt20
3 files changed, 43 insertions, 0 deletions
diff --git a/src/test/examples/EarliestCoreBundleSCD/EarliestCoreBundleSCD.wixproj b/src/test/examples/EarliestCoreBundleSCD/EarliestCoreBundleSCD.wixproj
new file mode 100644
index 00000000..ebeebff2
--- /dev/null
+++ b/src/test/examples/EarliestCoreBundleSCD/EarliestCoreBundleSCD.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.EarliestCoreMBA\scd" />
5 <HarvestDirectory Include="$(OutputPath)publish\Example.EarliestCoreMBA\scd">
6 <DirectoryRefId>publish.Example.EarliestCoreMBA.scd</DirectoryRefId>
7 <Transforms>ba.xslt</Transforms>
8 </HarvestDirectory>
9 </ItemGroup>
10</Project>
diff --git a/src/test/examples/EarliestCoreBundleSCD/SelfContainedBundle.wxs b/src/test/examples/EarliestCoreBundleSCD/SelfContainedBundle.wxs
new file mode 100644
index 00000000..d951ffc6
--- /dev/null
+++ b/src/test/examples/EarliestCoreBundleSCD/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="SCDEarliestCoreMBA" 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.EarliestCoreMBA.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/EarliestCoreBundleSCD/ba.xslt b/src/test/examples/EarliestCoreBundleSCD/ba.xslt
new file mode 100644
index 00000000..06b84256
--- /dev/null
+++ b/src/test/examples/EarliestCoreBundleSCD/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.EarliestCoreMBA.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>