-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Remove /RESOURCE flag documentation on ilasm. #20818
Remove /RESOURCE flag documentation on ilasm. #20818
Conversation
@RussKeldorph I suggested we remove this option for right now so we don't get into unrealistic expectations about what is supported. I am suggesting we entirely remove the option and see if there is any community desire for it. Any thoughts/concerns with this? |
@AaronRobinsonMSFT Makes sense. |
I thought we were using this for the ilproj in CoreFX? |
We likely need an alternative for embedding resources into the |
@tannergooding That target doesn't pass the This change will have no impact on that scenario - at least how that target file is currently written. If we added that |
@AaronRobinsonMSFT, that target calls We then consume the If you remove the switch, you will be dropping all the following resource information from the production assembly:
|
AFAIK, there is nothing blocking |
CvtRes.exe or equivalent are unnecessary complications in this pipeline. It should be pretty straightforward to take the .res file and attach it to the assembly, without going through intermediate .obj file. It is just pain to do in ilasm codebase in C/C++ - maybe we can do it as post-processing step in C#. |
@tannergooding In the second
No one is arguing with that. The initial thought here was that no one was using that flag since it doesn't work out of the box at the moment - at least from the
@jkotas Yep, I fully agree. I was hoping there was nothing using the current flag but alas there is. @jkoritzinsky Care to take a stab at @jkotas suggestion and call the appropriate Win32 calls to fix this? Otherwise, it looks like we should leave this as is, but please create a bug that calls out the |
@AaronRobinsonMSFT, the More specifically, the coreclr/src/dlls/mscorpe/ceefilegenwriter.cpp Line 1040 in 030a3ea
|
Ah. That is the part I didn't realize. The doc just says End result here is the flag needs to stay but should be documented properly. Thanks for clarifying the underlying issue! |
This reverts commit 7d1a9ac.
I've updated the documentation of the switches in ilasm and reverted the removal of the switch. |
…ath in place for corefx.
@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test |
1 similar comment
@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test |
* Remove /RESOURCE flag on ilasm. * Revert "Remove /RESOURCE flag on ilasm." This reverts commit 7d1a9ac. * Update documentation in ilasm switches. * Update documentation to say that the obj file has to come from a .res file. * Remove documentation of the /RESOURCE switch. Leave the switch code-path in place for corefx.
* Remove /RESOURCE flag on ilasm. * Revert "Remove /RESOURCE flag on ilasm." This reverts commit dotnet/coreclr@7d1a9ac. * Update documentation in ilasm switches. * Update documentation to say that the obj file has to come from a .res file. * Remove documentation of the /RESOURCE switch. Leave the switch code-path in place for corefx. Commit migrated from dotnet/coreclr@8826f6f
Update the documentation of the /RESOURCE flag to reflect that we only support linking in .obj resource files.
Original:
ILAsm depends on an external tool (CvtRes.exe) being in the same directory as ILAsm. We don't own CvtRes.exe (and it currently isn't open-sourced), so we need to figure out how we want to implement resource embedding via ILAsm. In the meantime, we should remove the /RESOURCE flag since it won't work at all right now.
@AaronRobinsonMSFT PTAL.