This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
/resource (Embed Resource File to Output)
Embeds a resource to the output file in an assembly.
/resource:filename[,identifier]
-or-
/res:filename[,identifier]
Arguments
- filename
- The resource file you want to embed in the output file.
- identifier (optional)
- The logical name for the resource; the name used to load the resource. The default is the name of the file name.
Remarks
Use the /linkresource option to link a resource to an assembly and not place the resource file in the output file.
/resource requires one of the /target options other than /target:module.
NGWS runtime resources can be accessed with members in the System.Resources namespace.
Example
Compile in.vb
and attach resource file rf.resource
:
vbc /res:rf.resource in.vb
See Also
Visual Basic Compiler Options | /win32resource