Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions src/api/wix/WixToolset.Data/Symbols/HarvestPayloadsSymbol.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// 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.

namespace WixToolset.Data
{
using WixToolset.Data.Symbols;

public static partial class SymbolDefinitions
{
public static readonly IntermediateSymbolDefinition HarvestPayloads = new IntermediateSymbolDefinition(
SymbolDefinitionType.HarvestPayloads,
new[]
{
new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.Inclusions), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.Exclusions), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.ComplexReferenceParentType), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.ParentId), IntermediateFieldType.String),
},
typeof(HarvestPayloadsSymbol));
}
}

namespace WixToolset.Data.Symbols
{
public enum HarvestPayloadsSymbolFields
{
Inclusions,
Exclusions,
ComplexReferenceParentType,
ParentId,
}

public class HarvestPayloadsSymbol : IntermediateSymbol
{
public HarvestPayloadsSymbol() : base(SymbolDefinitions.HarvestPayloads, null, null)
{
}

public HarvestPayloadsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.HarvestPayloads, sourceLineNumber, id)
{
}

public IntermediateField this[HarvestPayloadsSymbolFields index] => this.Fields[(int)index];

public string Inclusions
{
get => (string)this.Fields[(int)HarvestPayloadsSymbolFields.Inclusions];
set => this.Set((int)HarvestPayloadsSymbolFields.Inclusions, value);
}

public string Exclusions
{
get => (string)this.Fields[(int)HarvestPayloadsSymbolFields.Exclusions];
set => this.Set((int)HarvestPayloadsSymbolFields.Exclusions, value);
}

public string ComplexReferenceParentType
{
get => (string)this.Fields[(int)HarvestPayloadsSymbolFields.ComplexReferenceParentType];
set => this.Set((int)HarvestPayloadsSymbolFields.ComplexReferenceParentType, value);
}

public string ParentId
{
get => (string)this.Fields[(int)HarvestPayloadsSymbolFields.ParentId];
set => this.Set((int)HarvestPayloadsSymbolFields.ParentId, value);
}
}
}
1 change: 1 addition & 0 deletions src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public enum SymbolDefinitionType
File,
FileSFPCatalog,
HarvestFiles,
HarvestPayloads,
Icon,
ImageFamilies,
IniFile,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<!-- 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">
<ItemGroup>
<BindPath Include="$(OutputPath)publish\Example.EarliestCoreMBA\scd" />
<HarvestDirectory Include="$(OutputPath)publish\Example.EarliestCoreMBA\scd">
<DirectoryRefId>publish.Example.EarliestCoreMBA.scd</DirectoryRefId>
<Transforms>ba.xslt</Transforms>
</HarvestDirectory>
</ItemGroup>

<ItemGroup>
<PackageReference Include="WixToolset.Heat" />
<BindPath Include="$(OutputPath)publish\Example.EarliestCoreMBA\scd" BindName="ba.payloads" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
<Bundle Name="SCDEarliestCoreMBA" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="5CE5B5C7-4B6B-4B95-B297-731F1F956533">
<BootstrapperApplication SourceFile="Example.EarliestCoreMBA.exe">
<!-- <bal:WixDotNetCoreBootstrapperApplicationHost SelfContainedDeployment="yes" /> -->
<PayloadGroupRef Id="publish.Example.EarliestCoreMBA.scd" />
<BootstrapperApplication SourceFile="!(bindpath.ba.payloads)\Example.EarliestCoreMBA.exe">
<Payloads Include="!(bindpath.ba.payloads)\**">
<Exclude Files="!(bindpath.ba.payloads)\Example.EarliestCoreMBA.exe" />
</Payloads>
</BootstrapperApplication>

<Chain>
<ExePackage DetectCondition="none" UninstallArguments="-foo" SourceFile="..\.data\notanexe.exe" PerMachine="yes" />
</Chain>
Expand Down
15 changes: 0 additions & 15 deletions src/ext/Bal/test/examples/EarliestCoreBundleSCD/ba.xslt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<!-- 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">
<ItemGroup>
<BindInputPaths Include="$(OutputPath)publish\Example.EarliestCoreMBA\trimmedscd" />
<HarvestDirectory Include="$(OutputPath)publish\Example.EarliestCoreMBA\trimmedscd">
<DirectoryRefId>publish.Example.EarliestCoreMBA.trimmedscd</DirectoryRefId>
<Transforms>ba.xslt</Transforms>
</HarvestDirectory>
</ItemGroup>

<ItemGroup>
<PackageReference Include="WixToolset.Heat" />
<BindInputPaths Include="$(OutputPath)publish\Example.EarliestCoreMBA\trimmedscd" BindName="ba.payloads" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
<Bundle Name="TrimmedSCDEarliestCoreMBA" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="5CE5B5C7-4B6B-4B95-B297-731F1F956533">
<BootstrapperApplication SourceFile="SourceDir\Example.EarliestCoreMBA.exe" >
<!-- <bal:WixDotNetCoreBootstrapperApplicationHost SelfContainedDeployment="yes" /> -->
<PayloadGroupRef Id="publish.Example.EarliestCoreMBA.trimmedscd" />
<BootstrapperApplication SourceFile="!(bindpath.ba.payloads)\Example.EarliestCoreMBA.exe" >
<Payloads Include="!(bindpath.ba.payloads)\**">
<Exclude Files="!(bindpath.ba.payloads)\Example.EarliestCoreMBA.exe" />
</Payloads>
</BootstrapperApplication>

<Chain>
<ExePackage DetectCondition="none" UninstallArguments="-foo" SourceFile="..\.data\notanexe.exe" PerMachine="yes" />
</Chain>
Expand Down
15 changes: 0 additions & 15 deletions src/ext/Bal/test/examples/EarliestCoreBundleTrimmedSCD/ba.xslt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<!-- 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">
<ItemGroup>
<BindInputPaths Include="$(OutputPath)publish\Example.LatestCoreMBA\scd" />
<HarvestDirectory Include="$(OutputPath)publish\Example.LatestCoreMBA\scd">
<DirectoryRefId>publish.Example.LatestCoreMBA.scd</DirectoryRefId>
<Transforms>ba.xslt</Transforms>
</HarvestDirectory>
</ItemGroup>

<ItemGroup>
<PackageReference Include="WixToolset.Heat" />
<BindInputPaths Include="$(OutputPath)publish\Example.LatestCoreMBA\scd" BindName="ba.payloads" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
<Bundle Name="SCDLatestCoreMBA" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="5CE5B5C7-4B6B-4B95-B297-731F1F956533">
<BootstrapperApplication SourceFile="Example.LatestCoreMBA.exe">
<!-- <bal:WixDotNetCoreBootstrapperApplicationHost SelfContainedDeployment="yes" /> -->
<PayloadGroupRef Id="publish.Example.LatestCoreMBA.scd" />
<BootstrapperApplication SourceFile="!(bindpath.ba.payloads)\Example.LatestCoreMBA.exe">
<Payloads Include="!(bindpath.ba.payloads)\**">
<Exclude Files="!(bindpath.ba.payloads)\Example.LatestCoreMBA.exe" />
</Payloads>
</BootstrapperApplication>

<Chain>
<ExePackage DetectCondition="none" UninstallArguments="-foo" SourceFile="..\.data\notanexe.exe" PerMachine="yes" />
</Chain>
Expand Down
15 changes: 0 additions & 15 deletions src/ext/Bal/test/examples/LatestCoreBundleSCD/ba.xslt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<!-- 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">
<ItemGroup>
<BindInputPaths Include="$(OutputPath)publish\Example.LatestCoreMBA\trimmedscd" />
<HarvestDirectory Include="$(OutputPath)publish\Example.LatestCoreMBA\trimmedscd">
<DirectoryRefId>publish.Example.LatestCoreMBA.trimmedscd</DirectoryRefId>
<Transforms>ba.xslt</Transforms>
</HarvestDirectory>
</ItemGroup>

<ItemGroup>
<PackageReference Include="WixToolset.Heat" />
<BindInputPaths Include="$(OutputPath)publish\Example.LatestCoreMBA\trimmedscd" BindName="ba.payloads" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
<Bundle Name="TrimmedSCDLatestCoreMBA" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="5CE5B5C7-4B6B-4B95-B297-731F1F956533">
<BootstrapperApplication SourceFile="Example.LatestCoreMBA.exe">
<!-- <bal:WixDotNetCoreBootstrapperApplicationHost SelfContainedDeployment="yes" /> -->
<PayloadGroupRef Id="publish.Example.LatestCoreMBA.trimmedscd" />
<BootstrapperApplication SourceFile="!(bindpath.ba.payloads)\Example.LatestCoreMBA.exe">
<Payloads Include="!(bindpath.ba.payloads)\**">
<Exclude Files="!(bindpath.ba.payloads)\Example.LatestCoreMBA.exe" />
</Payloads>
</BootstrapperApplication>

<Chain>
<ExePackage DetectCondition="none" UninstallArguments="-foo" SourceFile="..\.data\notanexe.exe" PerMachine="yes" />
</Chain>
Expand Down
15 changes: 0 additions & 15 deletions src/ext/Bal/test/examples/LatestCoreBundleTrimmedSCD/ba.xslt

This file was deleted.

6 changes: 1 addition & 5 deletions src/ext/Bal/test/examples/examples.proj
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,12 @@
Condition="'%(CoreMBAProject.SkipFDD)'==''" />
<Exec Command='dotnet publish -o "%(CoreMBAProject.PublishPath)\scd" -r win-x64 -c $(Configuration) --self-contained true "%(CoreMBAProject.Identity)"'
Condition="'%(CoreMBAProject.SkipSCD)'==''" />
<!--
Publishing a library is "undefined" (per https://github.com/dotnet/runtime/issues/91535)
and is now a build error. This will go away when BAs go out of proc, so not spending a
lot of time to keep building trimmed in VS 17.8.
-->
<Exec Command='dotnet publish -o "%(CoreMBAProject.PublishPath)\trimmedscd" -r win-x64 -c $(Configuration) --self-contained true -p:PublishTrimmed=false -p:TrimMode=%(CoreMBAProject.TrimMode) "%(CoreMBAProject.Identity)"'
Condition="'%(CoreMBAProject.TrimMode)'!=''" />
</Target>

<ItemGroup>
<ProjectReference Include="..\..\wixext\WixToolset.BootstrapperApplications.wixext.csproj" />
<ProjectReference Include="**\*.wixproj" />
</ItemGroup>
</Project>
Loading