ILRepack.Lib.MSBuild.Task icon indicating copy to clipboard operation
ILRepack.Lib.MSBuild.Task copied to clipboard

`ILRepackEnabled` Feature Property

Open ricaun opened this issue 1 year ago • 0 comments

Hello,

I wonder if there are some possibility to enable the targets using some propriety like: ILRepackEnabled

I know by default if the Configuration contains Release the targets is enabled, I kinda need to enable in others configuration like in the debug for example.

Something like this would make sense in the main ILRepack.Lib.MSBuild.Task.targets.

<ILRepackEnabled Condition="$(ILRepackEnabled) == '' and $(Configuration.Contains('Release'))">true</ILRepackEnabled>

Adding that with the other configuration. https://github.com/ravibpatel/ILRepack.Lib.MSBuild.Task/blob/b843b2b7c78318f4040a63dc45fd6c10596c4d4f/ILRepack.Lib.MSBuild.Task/ILRepack.Lib.MSBuild.Task.targets#L4C1-L6C21

And the ILRepackEnabled could be used to disable/enable the default Targets.

I could create a PR if that makes sense of the project.

ricaun avatar Aug 25 '24 20:08 ricaun