Do not execute default target if ILRepack.targets exists#2
Do not execute default target if ILRepack.targets exists#2jairbubbles wants to merge 1 commit intoAlexx999:masterfrom
Conversation
|
I use the .targets file and it's OK, it probably depends on what exactly you have in that file. Could you please elaborate a bit? |
|
I'll send it to you tomorrow but it's pretty close to what's in the readme. One thing to mention though is that my project is multitargetting |
|
Hey @Alexx999, here is a minimalistic sample to reproduce the issue (a console application that ILRepack Newtonsoft.json): When you compile it (in Release), you can see ILRepack being executed two times: |
|
Hi @Alexx999, did you have time to look into it? |
|
Sorry I've dropped a ball here badly with all that things that are happening in my country. |
|
This should indeed feel so insignificant, I can't imagine what you're going through. I can indeed workaround by setting: <Target Name="ILRepacker" AfterTargets="Build">
<PropertyGroup>
<DoILRepack>false</DoILRepack>
</PropertyGroup>I feel like though that it would be better to match the upstream's behavior for people migrating from the old package. Or at least update the README to indicate that? |
|
This should be documented, I agree wholeheartedly. |
Currently it's executing two times the ILRepack which was leading to duplicated symbols.