By default, linked resources are public in the assembly when they are created with the C# compiler. To make the resources private, specify private as the accessibility modifier. No other modifier other than public or private is allowed.
/linkresource requires one of the /target options other than /target:module.
If filename is a .NET Framework resource file created, for example, by Resgen.exe or in the development environment, it can be accessed with members in the System.Resources namespace. For more information, see System.Resources..::.ResourceManager. For all other resources, use the GetManifestResource* methods in the Assembly class to access the resource at run time.
The file specified in filename can be any 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 second of the following examples shows how to do this. You can do the same thing in the Assembly Linker. The third of the following examples shows how to do this. For more information, see Al.exe (Assembly Linker) and Working with Assemblies and the Global Assembly Cache.
/linkres is the short form of /linkresource.
This compiler option is unavailable in Visual Studio and cannot be changed programmatically.