Exclude satellite assemblies from archive.

This commit is contained in:
Livar Cunha 2017-06-21 08:48:12 -07:00
parent 3299513acb
commit 44d888dfc4

View file

@ -14,19 +14,22 @@
<PropertyGroup>
<GenerateArchivesDestinationArchive>$(ArchiveOutputDirectory)/%(GenerateArchivesInputsOutputs.OutFileName)$(ArchiveExtension)</GenerateArchivesDestinationArchive>
<SatelliteAssemblies>*.resources.dll</SatelliteAssemblies>
</PropertyGroup>
<ZipFileCreateFromDirectory
Condition=" '$(OSName)' == 'win' "
SourceDirectory="%(GenerateArchivesInputsOutputs.InputDirectory)"
DestinationArchive="$(GenerateArchivesDestinationArchive)"
OverwriteDestination="true"/>
OverwriteDestination="true"
ExcludePatterns="$(SatelliteAssemblies)" />
<TarGzFileCreateFromDirectory
Condition=" '$(OSName)' != 'win' "
SourceDirectory="%(GenerateArchivesInputsOutputs.InputDirectory)"
DestinationArchive="$(GenerateArchivesDestinationArchive)"
OverwriteDestination="true"/>
OverwriteDestination="true"
ExcludePatterns="$(SatelliteAssemblies)" />
<ItemGroup>
<Archives Include="$(GenerateArchivesDestinationArchive)" />