Skip to content

Commit 25a8fc3

Browse files
committed
Added new option ExcludeInternalizeSerializable.
1 parent f45335a commit 25a8fc3

File tree

2 files changed

+37
-30
lines changed

2 files changed

+37
-30
lines changed

ILRepack.Lib.MSBuild.Task/ILRepack.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ public virtual string TargetKind
132132
/// </summary>
133133
public virtual bool RenameInternalized { get; set; }
134134

135+
/// <summary>
136+
/// Do not internalize types marked as Serializable.
137+
/// </summary>
138+
public virtual bool ExcludeInternalizeSerializable { get; set; }
139+
135140
/// <summary>
136141
/// If Internalize is set to true, any which match these regular expressions will not be internalized.
137142
/// If Internalize is false, then this property is ignored.
@@ -233,6 +238,7 @@ public override bool Execute()
233238
XmlDocumentation = XmlDocumentation,
234239
Internalize = Internalize,
235240
RenameInternalized = RenameInternalized,
241+
ExcludeInternalizeSerializable = ExcludeInternalizeSerializable,
236242
DelaySign = DelaySign,
237243
AllowDuplicateResources = AllowDuplicateResources,
238244
AllowZeroPeKind = ZeroPeKind,

README.md

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -91,33 +91,34 @@ You can turn this functionality off by setting ClearOutputDirectory to False as
9191

9292
## Task options
9393

94-
| Option | Description |
95-
|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
96-
| KeyFile | Specifies a key file to sign the output assembly. |
97-
| KeyContainer | Specifies a key container to use. |
98-
| LogFile | Specifies a log file to output log information. |
99-
| Union | Merges types with identical names into one. |
100-
| DebugInfo | Enable/disable symbol file generation. |
101-
| AttributeFile | Take assembly attributes from the given assembly file. |
102-
| CopyAttributes | Copy assembly attributes. |
103-
| AllowMultiple | Allows multiple attributes (if type allows). |
104-
| TargetKind | Target assembly kind (Exe\|Dll\|WinExe\|SameAsPrimaryAssembly) |
105-
| TargetPlatformVersion | Target platform (v1, v1.1, v2, v4 supported). |
106-
| TargetPlatformDirectory | Path of Directory where the target platform is located. |
107-
| XmlDocumentation | Merge assembly XML documentation. |
108-
| LibraryPath | List of paths to use as "include directories" when attempting to merge assemblies. |
109-
| Internalize | Set all types but the ones from the first assembly 'internal'. |
110-
| RenameInternalized | Rename all internalized types (to be used when Internalize is enabled). |
111-
| InternalizeExclude | If Internalize is set to true, any which match these regular expressions will not be internalized. If Internalize is false, then this property is ignored. |
112-
| OutputFile | Output name for the merged assembly. |
113-
| InputAssemblies | List of assemblies that will be merged. |
114-
| DelaySign | Set the key file, but don't sign the assembly. |
115-
| AllowDuplicateResources | Allows duplicating resources in the output assembly. |
116-
| AllowedDuplicateNamespaces | Allows the specified namespaces from being duplicated into input assemblies. Multiple namespaces are delimited by ",". |
117-
| ZeroPeKind | Allows assemblies with Zero PeKind (but obviously only IL will get merged). |
118-
| Parallel | Use as many CPUs as possible to merge the assemblies. |
119-
| PauseBeforeExit | Pause execution once completed (good for debugging). |
120-
| Verbose | Additional debug information during the merge that will be outputted to LogFile. |
121-
| NoRepackRes | Does not add the embedded resource 'ILRepack.List' with all merged assembly names. |
122-
| Wildcards | Allows (and resolves) file wildcards (e.g., `*.dll`) in input assemblies. |
123-
| RepackDropAttribute | Name of an attribute (optional). Members in input assemblies marked with this attribute will be dropped during merging. |
94+
| Option | Description |
95+
|--------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
96+
| KeyFile | Specifies a key file to sign the output assembly. |
97+
| KeyContainer | Specifies a key container to use. |
98+
| LogFile | Specifies a log file to output log information. |
99+
| Union | Merges types with identical names into one. |
100+
| DebugInfo | Enable/disable symbol file generation. |
101+
| AttributeFile | Take assembly attributes from the given assembly file. |
102+
| CopyAttributes | Copy assembly attributes. |
103+
| AllowMultiple | Allows multiple attributes (if type allows). |
104+
| TargetKind | Target assembly kind (Exe\|Dll\|WinExe\|SameAsPrimaryAssembly) |
105+
| TargetPlatformVersion | Target platform (v1, v1.1, v2, v4 supported). |
106+
| TargetPlatformDirectory | Path of Directory where the target platform is located. |
107+
| XmlDocumentation | Merge assembly XML documentation. |
108+
| LibraryPath | List of paths to use as "include directories" when attempting to merge assemblies. |
109+
| Internalize | Set all types but the ones from the first assembly 'internal'. |
110+
| RenameInternalized | Rename all internalized types (to be used when Internalize is enabled). |
111+
| ExcludeInternalizeSerializable | Do not internalize types marked as Serializable. |
112+
| InternalizeExclude | If Internalize is set to true, any which match these regular expressions will not be internalized. If Internalize is false, then this property is ignored. |
113+
| OutputFile | Output name for the merged assembly. |
114+
| InputAssemblies | List of assemblies that will be merged. |
115+
| DelaySign | Set the key file, but don't sign the assembly. |
116+
| AllowDuplicateResources | Allows duplicating resources in the output assembly. |
117+
| AllowedDuplicateNamespaces | Allows the specified namespaces from being duplicated into input assemblies. Multiple namespaces are delimited by ",". |
118+
| ZeroPeKind | Allows assemblies with Zero PeKind (but obviously only IL will get merged). |
119+
| Parallel | Use as many CPUs as possible to merge the assemblies. |
120+
| PauseBeforeExit | Pause execution once completed (good for debugging). |
121+
| Verbose | Additional debug information during the merge that will be outputted to LogFile. |
122+
| NoRepackRes | Does not add the embedded resource 'ILRepack.List' with all merged assembly names. |
123+
| Wildcards | Allows (and resolves) file wildcards (e.g., `*.dll`) in input assemblies. |
124+
| RepackDropAttribute | Name of an attribute (optional). Members in input assemblies marked with this attribute will be dropped during merging. |

0 commit comments

Comments
 (0)