Creates a link to a managed resource.
/linkresource:filename[,identifier[,public|private]]
-or-
/linkres:filename[,identifier[,public|private]]
/linkres:filename.res,myname.res,public
. By default, filename is public in the assembly.The /linkresource option does not embed the resource file in the output file; use the /resource option to do this.
/linkresource requires one of the /target options other than /target:module.
If filename is a .NET Framework resource file created, for example, by the
The short form of /linkresource is /linkres.
Note The /linkresource option is not available from within the Visual Studio development environment; it is available only when compiling from the command line. It cannot be changed programmatically.
The following code compiles in.vb
and links to resource file rf.resource
:
vbc /linkresource:rf.resource in.vb