Uh oh!
There was an error while loading. Please reload this page.
Crossplatform ResourceUpdater - #89303
Conversation
ImageWriter doesn't support writing image with COFF header at 280 so I write alternative process
ghost
commented
Jul 21, 2023
Tagging subscribers to this area: @vitek-karas, @agocke Issue DetailsI tried to implement resource updater based on Mono.Cecil.Binary from mono repository Fixes #3828
|
vitek-karas
commented
Jul 21, 2023
/cc @elinor-fung |
anatawa12
commented
Jul 22, 2023
The test failure |
vitek-karas
commented
Jul 24, 2023
The test failures are suspect - these tests suites are exactly those which target the functionality around the ResourceUpdater... so we need to figure out what's wrong. |
anatawa12
commented
Jul 25, 2023
Sorry I found the failure on main branch is my fault. |
elinor-fung
commented
Jul 25, 2023
Thanks a lot for tackling this @anatawa12. Some high level comments/questions about the implementation:
In general, I'm looking to re-use existing code/functionality and pull in as little new logic as possible that we would have to ship in the SDK and maintain separately from other implementations. I think if the two things above are doable, it would just leave the actual writing/patching as new logic specific to HostModel. Testing is probably my biggest concern here. This basically affects every build targeting Windows. Unfortunately, even running on Windows, we have a significant test hole around resource updating. With the exception of those two tests, that were failing and you addressed, the tests in the runtime repo aren't actually using Ideally, we would have:
|
I think yes. I didn't know about
I think data model can be reused |
9b19911 to
ed3f32aCompareUh oh!
There was an error while loading. Please reload this page.
elinor-fung
left a comment
There was a problem hiding this comment.
Final minor comment. Excited to see this come together - thank you!
Uh oh!
There was an error while loading. Please reload this page.
anatawa12
commented
Aug 8, 2023
#90136 fixed the CI failure. Thank you. |
ResourceUpdater.IsSupportedOS() will always return true since dotnet/runtime#89303
elinor-fung
commented
Aug 8, 2023
Thank you, @anatawa12! |
matt-richardson
commented
Aug 8, 2023
@anatawa12 - you are a legend. Thanks! |
akirayamamoto
commented
Aug 8, 2023
Thank you @anatawa12, that is awesome! |
ResourceUpdater.IsSupportedOS() will always return true since dotnet/runtime#89303
agocke
commented
Aug 14, 2023
@anatawa12 Thanks for your contribution, this is great! Really excellent work. |
vitek-karas
commented
Aug 15, 2023
Thanks a lot @anatawa12 - this is great. |
ResourceUpdater.IsSupportedOS() will always return true since dotnet/runtime#89303
I tried to implement resource updater based on
Mono.Cecil.Binary from mono repositorySystem.Reflection.MetadataandCompiler/Win32ResourcesFixes#3828
Fixes#88465