System.CodeDom.Compiler.CompilerParameters.LinkedResources Property

Gets the .NET Framework resource files that are referenced in the current source.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Linked resource files allow your assembly to reference .NET Framework resources without embedding the actual resources in the assembly. Referencing files through this property is similar to the /linkresource 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 create links for the 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.LinkedResources to reference .NET Framework resources in satellite assemblies, localized for a particular culture; use the CompilerParameters.EmbeddedResources property to embed the resources into the compiled assembly.

Requirements

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