System.CodeDom.Compiler.CompilerParameters.EmbeddedResources Property

Gets the .NET Framework resource files to include when compiling the assembly output.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public System.Collections.Specialized.StringCollection EmbeddedResources { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Embedded resources are built into the generated assembly output file. Including files through this property is similar to the /resource command-line argument supported by many of the .NET Framework compilers.

Not all compilers support .NET Framework resource files, so you should test for this support by calling the ICodeGenerator.Supports(GeneratorSupport) method with the flag GeneratorSupport.Resources.

Add one or more .NET Framework resource file paths to the returned System.Collections.Specialized.StringCollection to embed the file resources in the compiled assembly. Adding a duplicate or invalid file path results in compilation errors; ensure that each string specifies a unique path to a valid .NET Framework resource file.

Use CompilerParameters.EmbeddedResources to include default or neutral culture .NET Framework resources for an assembly; use the CompilerParameters.LinkedResources property to reference .NET Framework resources in satellite assemblies.

Requirements

Namespace: System.CodeDom.Compiler
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0