This documentation is archived and is not being maintained.

CompilerParameters.Win32Resource Property

Gets or sets the file name of a Win32 resource file to link into the compiled assembly.

Namespace: System.CodeDom.Compiler
Assembly: System (in system.dll)

public string Win32Resource { get; set; }
/** @property */
public String get_Win32Resource ()

/** @property */
public void set_Win32Resource (String value)

public function get Win32Resource () : String

public function set Win32Resource (value : String)

Not applicable.

Property Value

A Win32 resource file that will be linked into the compiled assembly.

Linking files through this property is similar to the /winres and /winresource command-line arguments supported by many of the .NET Framework compilers.

Use Win32Resource to compile a Win32 resource file into the assembly. Use EmbeddedResources or LinkedResources to compile with .NET Framework resource files.

Not all compilers support Win32 resource files, so you should test a code generator for this support before linking a resource file by calling the Supports method with the flag Win32Resources.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0