NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

/linkresource (Link to NGWS Resource)

/linkresource:filename[,identifier[,mimetype]]

where:

filename
The NGWS resource file to which you want to link from the assembly.
identifier (optional)
The logical name for the resource; the name used to load the resource. The default is the name of the file name.
mimetype (optional)
A string representing the media type for the resource. The default is none.

Remarks

The /linkresource option creates a link to a NGWS resource in the output file; the resource file is not placed in the output file. /resource embeds a resource file in the output file.

/linkresource requires one of the /target options other than /target:module.

NGWS resources can be accessed with members in the System.Resources namespace.

/linkres is the short form of /linkresource.

Example

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

csc /linkresource:rf.resource in.cs

See Also

C# Compiler Options