-
Notifications
You must be signed in to change notification settings - Fork 3
Do not execute default target if ILRepack.targets exists #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Do not execute default target if ILRepack.targets exists #2
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.