aboutsummaryrefslogtreecommitdiff
path: root/src/TestData/PrereqBaTests/BundleA
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-01-01 21:35:51 -0600
committerSean Hall <r.sean.hall@gmail.com>2021-01-03 16:20:18 -0600
commit47724ab546a84e77b4699bc28aa4e4ad7901253f (patch)
treee70f7ba0181f3a6d29fe7417b19bd1c830e77527 /src/TestData/PrereqBaTests/BundleA
parent73dc2706d9f151554356aaf3e69bfad5b46a21e9 (diff)
downloadwix-47724ab546a84e77b4699bc28aa4e4ad7901253f.tar.gz
wix-47724ab546a84e77b4699bc28aa4e4ad7901253f.tar.bz2
wix-47724ab546a84e77b4699bc28aa4e4ad7901253f.zip
Try to make it easier to add new kinds of tests.
Diffstat (limited to 'src/TestData/PrereqBaTests/BundleA')
-rw-r--r--src/TestData/PrereqBaTests/BundleA/BundleA.wixproj16
-rw-r--r--src/TestData/PrereqBaTests/BundleA/BundleA.wxi17
-rw-r--r--src/TestData/PrereqBaTests/BundleA/BundleA.wxs21
-rw-r--r--src/TestData/PrereqBaTests/BundleA/bad.runtimeconfig.json10
4 files changed, 64 insertions, 0 deletions
diff --git a/src/TestData/PrereqBaTests/BundleA/BundleA.wixproj b/src/TestData/PrereqBaTests/BundleA/BundleA.wixproj
new file mode 100644
index 00000000..56f4b11e
--- /dev/null
+++ b/src/TestData/PrereqBaTests/BundleA/BundleA.wixproj
@@ -0,0 +1,16 @@
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 <PropertyGroup>
4 <OutputType>Bundle</OutputType>
5 </PropertyGroup>
6 <ItemGroup>
7 <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net5.0-windows\win-x86" BindName="dnc5x86" />
8 </ItemGroup>
9 <ItemGroup>
10 <ProjectReference Include="..\PackageA\PackageA.wixproj" />
11 <ProjectReference Include="..\PackageF\PackageF.wixproj" />
12 </ItemGroup>
13 <ItemGroup>
14 <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.77" />
15 </ItemGroup>
16</Project> \ No newline at end of file
diff --git a/src/TestData/PrereqBaTests/BundleA/BundleA.wxi b/src/TestData/PrereqBaTests/BundleA/BundleA.wxi
new file mode 100644
index 00000000..23623ffb
--- /dev/null
+++ b/src/TestData/PrereqBaTests/BundleA/BundleA.wxi
@@ -0,0 +1,17 @@
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
3<?ifndef Version?>
4<?define Version = 1.0.0.0?>
5<?endif?>
6
7<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
8 <Bundle Name="~$(var.TestGroupName) - Bundle A" Version="$(var.Version)" UpgradeCode="{A4456636-916A-43A0-87BF-A897C2717A00}" Compressed="yes">
9 <Log Prefix="~$(var.TestGroupName)_BundleA" />
10
11 <Variable Name="TestGroupName" Value="$(var.TestGroupName)" />
12
13 <Chain>
14 <PackageGroupRef Id="BundlePackages" />
15 </Chain>
16 </Bundle>
17</Include>
diff --git a/src/TestData/PrereqBaTests/BundleA/BundleA.wxs b/src/TestData/PrereqBaTests/BundleA/BundleA.wxs
new file mode 100644
index 00000000..53139834
--- /dev/null
+++ b/src/TestData/PrereqBaTests/BundleA/BundleA.wxs
@@ -0,0 +1,21 @@
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
3
4<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
5 <?include BundleA.wxi ?>
6 <Fragment>
7 <BootstrapperApplication>
8 <Payload SourceFile="!(bindpath.dnc5x86)\TestBA.deps.json" />
9 <Payload SourceFile="!(bindpath.dnc5x86)\TestBA.dll" bal:BAFactoryAssembly="yes" />
10 <Payload Name="TestBA.runtimeconfig.json" SourceFile="bad.runtimeconfig.json" />
11 <Payload SourceFile="!(bindpath.dnc5x86)\mbanative.dll" />
12 <Payload SourceFile="!(bindpath.dnc5x86)\WixToolset.Mba.Core.dll" />
13 <bal:WixDotNetCoreBootstrapperApplicationHost />
14 </BootstrapperApplication>
15
16 <PackageGroup Id="BundlePackages">
17 <MsiPackage Id="PackageA" SourceFile="$(var.PackageA.TargetPath)" bal:PrereqPackage="yes" Permanent="yes" />
18 <MsiPackage Id="PackageF" SourceFile="$(var.PackageF.TargetPath)" />
19 </PackageGroup>
20 </Fragment>
21</Wix>
diff --git a/src/TestData/PrereqBaTests/BundleA/bad.runtimeconfig.json b/src/TestData/PrereqBaTests/BundleA/bad.runtimeconfig.json
new file mode 100644
index 00000000..07a1a830
--- /dev/null
+++ b/src/TestData/PrereqBaTests/BundleA/bad.runtimeconfig.json
@@ -0,0 +1,10 @@
1{
2 "runtimeOptions": {
3 "tfm": "net5.5",
4 "rollForward": "Disable",
5 "framework": {
6 "name": "Microsoft.WindowsDesktop.App",
7 "version": "5.5.0"
8 }
9 }
10} \ No newline at end of file