Skip to content
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

Update samples added for PersistedAssemblyBuilder #44086

Merged
merged 3 commits into from
Dec 27, 2024

Conversation

steveharter
Copy link
Member

@steveharter steveharter commented Dec 26, 2024

Summary

The main issue is to correct the SetResource() sample so it runs correctly (embed the size in the blob and use an offset of 0). See dotnet/runtime#110686

Lower-priority changes:

  • Add sample to read resources
  • Change to new() syntax for constructors
  • Use the helpers PEHeaderBuilder.CreateExecutableHeader() and CreateLibraryHeader()

Internal previews

📄 File 🔗 Preview link
docs/fundamentals/runtime-libraries/system-reflection-emit-persistedassemblybuilder.md Persisted dynamic assemblies in .NET

@steveharter steveharter added the doc-bug Problem with the content; needs to be fixed [org][type][category] label Dec 26, 2024
@steveharter steveharter self-assigned this Dec 26, 2024
@steveharter steveharter requested a review from a team as a code owner December 26, 2024 20:08
@dotnetrepoman dotnetrepoman bot added this to the December 2024 milestone Dec 26, 2024
@steveharter steveharter merged commit 9c423c0 into dotnet:main Dec 27, 2024
8 checks passed
@steveharter steveharter deleted the UpdateResourcesSample branch December 27, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-fundamentals/svc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants