Export (0) Print
Expand All

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 Value

Type: System.String
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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft