/resource (Visual Basic)
Embeds a managed resource in an assembly.
/resource:filename[,identifier[,public|private]] ' -or- /res:filename[,identifier[,public|private]]
Use /linkresource to link a resource to an assembly without placing the resource file in the output file.
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 (see ResourceManager for more information). To access all other resources at run time, use one of the following methods: GetManifestResourceInfo, GetManifestResourceNames, or GetManifestResourceStream.
The short form of /resource is /res.
To set /resource in the Visual Studio integrated development environment
The following code compiles In.vb and attaches resource file Rf.resource.
vbc /res:rf.resource in.vb