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!

/resource (Embed Resource File to Output)

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

where:

filename
The NGWS resource file you want to embed in the output file.
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 /resource option embeds a NGWS resource to the output file in an assembly. /linkresource links a resource to an assembly but does not place the resource file in the output file.

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

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

Example

Compile in.cs and attach resource file rf.resource:

csc /resource:rf.resource in.cs

See Also

C# Compiler Options