Skip to content

Commit

Permalink
Added ILRepackExcludeInternalizeSerializable option.
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed Jan 17, 2024
1 parent 04b6a1f commit 5ba4ae4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ILRepack.FullAuto/build/ILRepack.FullAuto.targets
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<ILRepackCopyAttributes Condition="'$(ILRepackCopyAttributes)' == ''">False</ILRepackCopyAttributes>
<ILRepackPerformInternalize Condition="'$(ILRepackPerformInternalize)' == ''">True</ILRepackPerformInternalize>
<ILRepackRenameInternalized Condition="'$(ILRepackRenameInternalized)' == ''">False</ILRepackRenameInternalized>
<ILRepackExcludeInternalizeSerializable Condition="'$(ILRepackExcludeInternalizeSerializable)' == ''">False</ILRepackExcludeInternalizeSerializable>
<ILRepackAllowDuplicateResources Condition="'$(ILRepackAllowDuplicateResources)' == ''">True</ILRepackAllowDuplicateResources>
<ILRepackAllowDuplicateNamespaces Condition="'$(ILRepackAllowDuplicateNamespaces)' == ''"></ILRepackAllowDuplicateNamespaces>
<ILRepackExcludeAssemblies Condition="'$(ILRepackExcludeAssemblies)' == ''"></ILRepackExcludeAssemblies>
Expand Down Expand Up @@ -80,13 +81,14 @@
<_ILRepack_CopyAttributesOption Condition="$(ILRepackCopyAttributes)">--copyattrs --allowMultiple</_ILRepack_CopyAttributesOption>
<_ILRepack_PerformInternalizeOption Condition="$(ILRepackPerformInternalize)">--internalize</_ILRepack_PerformInternalizeOption>
<_ILRepack_RenameInternalizedOption Condition="$(ILRepackRenameInternalized)">--renameinternalized</_ILRepack_RenameInternalizedOption>
<_ILRepack_ExcludeInternalizeSerializableOption Condition="$(ILRepackExcludeInternalizeSerializable)">--excludeinternalizeserializable</_ILRepack_ExcludeInternalizeSerializableOption>
<_ILRepack_AllowDuplicateResourcesOption Condition="$(ILRepackAllowDuplicateResources)">--allowduplicateresources</_ILRepack_AllowDuplicateResourcesOption>
<_ILRepack_PerformVerboseOutput Condition="$(ILRepackPerformVerboseOutput)">--verbose</_ILRepack_PerformVerboseOutput>
<_ILRepack_InsertRepackListOutput Condition="!($(ILRepackInsertRepackList))">--noRepackRes</_ILRepack_InsertRepackListOutput>
<_ILRepack_MergeDebugSymbolsOutput Condition="!($(_ILRepack_MergeDebugSymbols))">--ndebug</_ILRepack_MergeDebugSymbolsOutput>
<_ILRepack_MergeXmlDocumentsOutput Condition="$(_ILRepack_MergeXmlDocuments)">--xmldocs</_ILRepack_MergeXmlDocumentsOutput>

<_ILRepack_Options>$(_ILRepack_ParallelProcessingOption) $(_ILRepack_UnionTypesOption) $(_ILRepack_CopyAttributesOption) $(_ILRepack_PerformInternalizeOption) $(_ILRepack_RenameInternalizedOption) $(_ILRepack_AllowDuplicateResourcesOption) $(_ILRepack_AllowDuplicateNamespacesOption) $(_ILRepack_CombinedReferenceBasePathOption) $(_ILRepack_PerformVerboseOutput) $(_ILRepack_InsertRepackListOutput) $(_ILRepack_MergeDebugSymbolsOutput) $(_ILRepack_MergeXmlDocumentsOutput)</_ILRepack_Options>
<_ILRepack_Options>$(_ILRepack_ParallelProcessingOption) $(_ILRepack_UnionTypesOption) $(_ILRepack_CopyAttributesOption) $(_ILRepack_PerformInternalizeOption) $(_ILRepack_RenameInternalizedOption) $(_ILRepack_ExcludeInternalizeSerializableOption) $(_ILRepack_AllowDuplicateResourcesOption) $(_ILRepack_AllowDuplicateNamespacesOption) $(_ILRepack_CombinedReferenceBasePathOption) $(_ILRepack_PerformVerboseOutput) $(_ILRepack_InsertRepackListOutput) $(_ILRepack_MergeDebugSymbolsOutput) $(_ILRepack_MergeXmlDocumentsOutput)</_ILRepack_Options>
</PropertyGroup>
<Exec WorkingDirectory="$(ILRepackBuildToolingDir)"
Command="$(ILRepackBuildToolingRuntimeName)&quot;$(ILRepackBuildToolingPath)&quot; $(_ILRepack_Options) @(_ILRepack_PrimaryAssembly->'--out:&quot;%(FullPath)&quot;',' ') @(_ILRepack_PrimaryAssembly->'&quot;%(FullPath)&quot;',' ') @(_ILRepack_ReferenceAssemblies->'&quot;%(FullPath)&quot;',' ')" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<Deterministic>true</Deterministic>
<NoWarn>$(NoWarn);NU1803</NoWarn>
<ILRepackTargetConfigurations>Debug;Release</ILRepackTargetConfigurations>
<ILRepackExcludeInternalizeSerializable>False</ILRepackExcludeInternalizeSerializable>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ These options are `PropertyGroup` variables:
|`ILRepackCopyAttributes`|Copy assembly-wide attributes.|`False`|
|`ILRepackPerformInternalize`|Perform internalize between merged assembly declarations.|`True`|
|`ILRepackRenameInternalized`|Perform automatic renaming internalized declarations.|`False`|
|`ILRepackExcludeInternalizeSerializable`|Exclude internalizing when the type is marked serializable.|`False`|
|`ILRepackAllowDuplicateResources`|Allow duplicate any resources.|`True`|
|`ILRepackAllowDuplicateNamespaces`|Semicolon-separated namespace names (`Foo.Internal;Bar.Collection.Generic`)|(Empty)|
|`ILRepackExcludeAssemblies`|Semicolon-separated assembly file names (`Foo.dll;Bar.dll`)|(Empty)|
Expand All @@ -92,7 +93,7 @@ License under MIT.

* 1.5.0
* Updated referring ILRepack to 2.0.27.
* Added `ILRepackRenameInternalized` option.
* Added `ILRepackRenameInternalized` and `ILRepackExcludeInternalizeSerializable` option.
* 1.4.0
* Updated referring ILRepack to 2.0.25.
* 1.3.0
Expand Down

0 comments on commit 5ba4ae4

Please sign in to comment.