File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
ILRepack.Lib.MSBuild.Task Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ public virtual string OutputFile
213213 /// <summary>
214214 /// Name of an attribute (optional). Members in input assemblies marked with this attribute will be dropped during merging.
215215 /// </summary>
216- public string RepackDropAttribute { get ; set ; }
216+ public virtual string RepackDropAttribute { get ; set ; }
217217
218218 #endregion
219219
@@ -331,6 +331,11 @@ public override bool Execute()
331331 repackOptions . InternalizeAssemblies = InternalizeAssembly . Select ( i => StripExtension ( i . ItemSpec ) ) . ToArray ( ) ;
332332 }
333333
334+ if ( ! string . IsNullOrWhiteSpace ( repackOptions . RepackDropAttribute ) )
335+ {
336+ repackOptions . RepackDropAttributes . UnionWith ( RepackDropAttribute . Split ( new [ ] { ';' } , StringSplitOptions . RemoveEmptyEntries ) ) ;
337+ }
338+
334339 // Path that will be used when searching for assemblies to merge.
335340 var searchPath = new List < string > { "." } ;
336341 searchPath . AddRange ( LibraryPath . Select ( iti => BuildPath ( iti . ItemSpec ) ) ) ;
You can’t perform that action at this time.
0 commit comments