gluck / il-repack

Open-source alternative to ILMerge
Apache License 2.0
1.18k stars 217 forks source link

Feature request: Changing anycpu <-> anycpu32bitpreferred #373

Closed leppie closed 1 month ago

leppie commented 1 month ago

I know it is a bit pedantic, but corflags allows one to change the Cor20 flags.

I am not aware of a non-NET Framework replacement. Might be a nice addition.

(not sure if this has any relevance to .NET Core, also just applies to exes)

Corflags uses the following syntax (inplace modification):

corflags file.exe /32bit+

I suggest that and /32bit- for removal. Instead of inplace, use out arg.

image

Note: Adding suggestion as I think it is easy to do and fits in with an assembly modifier.

leppie commented 1 month ago

I will give this a go (PR) if approved.

KirillOsenkov commented 1 month ago

this should be a separate tool, see for example https://github.com/KirillOsenkov/MetadataTools/tree/main/src

leppie commented 1 month ago

Oh, thats cool. I knew some of my tools arent useful here, but they might be there.