-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Crossplatform ResourceUpdater #89303
Crossplatform ResourceUpdater #89303
Conversation
ImageWriter doesn't support writing image with COFF header at 280 so I write alternative process
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
|
/cc @elinor-fung |
The test failure |
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. |
Sorry I found the failure on main branch is my fault. |
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
ed3f32a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final minor comment. Excited to see this come together - thank you!
...r/tests/Microsoft.NET.HostModel.Tests/AppHost.Bundle.Tests/AppWithUnknownLanguageResource.cs
Outdated
Show resolved
Hide resolved
#90136 fixed the CI failure. Thank you. |
ResourceUpdater.IsSupportedOS() will always return true since dotnet/runtime#89303
Thank you, @anatawa12! |
@anatawa12 - you are a legend. Thanks! |
Thank you @anatawa12, that is awesome! |
ResourceUpdater.IsSupportedOS() will always return true since dotnet/runtime#89303
@anatawa12 Thanks for your contribution, this is great! Really excellent work. |
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.Metadata
andCompiler/Win32Resources
Fixes #3828
Fixes #88465