ravibpatel / ILRepack.Lib.MSBuild.Task

MSBuild task for ILRepack which is an open-source alternative to ILMerge.
Other
110 stars 31 forks source link

`ILRepackEnabled` Feature Property #62

Open ricaun opened 1 month ago

ricaun commented 1 month ago

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.