Export (0) Print
Expand All

/linkresource 

Creates a link to a managed resource.


/linkresource:filename[,name[,public|private]]
-or-
/linkres:filename[,name[,public|private]]

filename

The resource file to link to the assembly.

name[,public|private] (optional)

The logical name for the resource; the name used to load the resource. The default is the name of the file. Optionally, you can specify whether the file is public or private in the assembly manifest. For example, /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 embed a 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 System.Resources.ResourceManager for more information). For all other resources, use the GetManifestResource* methods in System.Reflection.Assembly class to access the resource at run time.

filename can be any file format. For example, you may want to make a native DLL part of the assembly, so it can be installed into the Global Assembly Cache and accessed from managed code in the assembly.

/linkres is the short form of /linkresource.

Compile in.js and link to resource file rf.resource:

jsc /linkresource:rf.resource in.js

Community Additions

ADD
Show:
© 2014 Microsoft