Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Emitting Resources with Reflection Emit

Resources that are recorded in the assembly manifest can be managed resources or manifest resource blobs, and each of these can be included in the assembly either by linking or by embedding. All four scenarios are supported for dynamic assemblies.

In addition, a single Win32 resource can be attached to an assembly using the AssemblyBuilder.DefineUnmanagedResource method or the ModuleBuilder.DefineUnmanagedResource method. This resource does not appear in the assembly manifest.

An unmanaged version information resource can be added to a dynamic assembly using the AssemblyBuilder.DefineVersionInfoResource method. DefineVersionInfoResource builds a version information resource using the properties of the AssemblyName class.

Community Additions

ADD
Show:
© 2015 Microsoft