/linkresource (Visual Basic)
Creates a link to a managed resource.
/linkresource:filename[,identifier[,public|private]] ' -or- /linkres:filename[,identifier[,public|private]]
The /linkresource option does not embed the resource file in the output file; use the /resource option to do this.
The /linkresource option requires one of the /target options other than /target:module.
If filename is a .NET Framework resource file created, for example, by the Resource File Generator (Resgen.exe) or in the development environment, it can be accessed with members in the System.Resources namespace. (For more information, see ResourceManager.) To access all other resources at run time, use the methods that begin with GetManifestResource in the Assembly class.
The file name can be any file format. For example, you may want to make a native DLL part of the assembly, so that it can be installed into the global assembly cache and accessed from managed code in the assembly.
The short form of /linkresource is /linkres.
The /linkresource option is not available from the Visual Studio development environment; it is available only when you compile from the command line.
The following code compiles In.vb and links to resource file Rf.resource.
vbc /linkresource:rf.resource in.vb