Closed madyke closed 1 year ago
This has been completed and will be backported to 9.42.
Including files can be done by using Content Include
and setting CopyToOutputDirectory
to either Always
or PreserveNewest
. Excluding files can be done by using HardwareStationExternalContentExcludeList
.
<!-- In the HardwareStation Extension Project -->
<ItemGroup>
<!-- Automatically included in the hardware station extension package like an external assembly -->
<Content Include="MyFile.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="MyFile2.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<!-- Will not be included in the package due to the exclude list entry -->
<HardwareStationExternalContentExcludeList Include="MyFile3.txt" />
<Content Include="MyFile3.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
Discussed in https://github.com/microsoft/Dynamics365Commerce.Solutions/discussions/24