blob: e7d029a34267e11bf498ad4c85888848e4ab29d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<!-- 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. -->
<Project Sdk="WixToolset.Sdk">
<PropertyGroup>
<OutputType>Bundle</OutputType>
<BA>hyperlinkLicense</BA>
<UpgradeCode>{5DE2F206-3C37-4265-81F7-095284E16B08}</UpgradeCode>
<HarvestDirectoryAdditionalOptions>-generate payloadgroup</HarvestDirectoryAdditionalOptions>
</PropertyGroup>
<ItemGroup>
<HarvestDirectory Include="BAPayloads">
<ComponentGroupName>BAPayloads</ComponentGroupName>
<DirectoryRefId>BAPayloads</DirectoryRefId>
<Transforms>ba.xslt</Transforms>
</HarvestDirectory>
<HarvestDirectory Include="PackagePayloads">
<ComponentGroupName>PackagePayloads</ComponentGroupName>
<DirectoryRefId>PackagePayloads</DirectoryRefId>
<Transforms>package.xslt</Transforms>
</HarvestDirectory>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PackageA\PackageA.wixproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="WixToolset.Heat" />
<PackageReference Include="WixToolset.Bal.wixext" />
</ItemGroup>
<!-- We do this dynamically to avoid committing so many files to source control. -->
<Target Name="CreateThousandsOfFiles" AfterTargets="BeforeBuild">
<Exec Command='"$(BaseOutputPath)$(Configuration)\net6.0\win-x86\testexe.exe" /gf "BAPayloads|10000' WorkingDirectory="$(MSBuildProjectDirectory)" />
<Exec Command='"$(BaseOutputPath)$(Configuration)\net6.0\win-x86\testexe.exe" /gf "PackagePayloads|10000' WorkingDirectory="$(MSBuildProjectDirectory)" />
</Target>
<Target Name="DeleteThousandsOfFiles" AfterTargets="AfterBuild">
<RemoveDir Directories="$(MSBuildProjectDirectory)\BAPayloads" />
<RemoveDir Directories="$(MSBuildProjectDirectory)\PackagePayloads" />
</Target>
</Project>
|