Closed cheeto-bandito closed 2 years ago
Want to share an example for white-listing version-specific binaries provided as part of a Sitecore hotfix.
<ItemGroup> <SitecoreHotfixAssemblies Include="Sitecore.ContentSearch.dll"> <Name>Sitecore.ContentSearch.dll</Name> <Version>5.0.0.0</Version> <FileVersion>5.0.0.0</FileVersion> <InfoVersion>5.0.0-r00294</InfoVersion> </SitecoreHotfixAssemblies> <SitecoreHotfixAssemblies Include="Sitecore.Kernel.dll"> <Name>Sitecore.Kernel.dll</Name> <Version>13.0.0.0</Version> <FileVersion>13.0.0.0</FileVersion> <InfoVersion>13.0.0-r00755</InfoVersion> </SitecoreHotfixAssemblies> </ItemGroup>
The benefits of this method are:
ItemGroup
.targets
<ItemGroup> <!-- Requires NuGet reference to Sitecore.Assemblies.Platform or another Assemblies package --> <SitecoreAssembliesToExclude Include="@(SitecoreAssemblies)" Exclude="@(SitecoreHotfixAssemblies" /> </ItemGroup>
This example covers the issue: #64
Looks great, thanks @cheeto-bandito!
Want to share an example for white-listing version-specific binaries provided as part of a Sitecore hotfix.
The benefits of this method are:
ItemGroup
to be packaged up into a.targets
file (which could be included in a Nuget package)This example covers the issue: #64