Partager via


GenerateApplicationManifest.IconFile Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the application's icon file.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property IconFile As ITaskItem
public ITaskItem IconFile { get; set; }
public:
property ITaskItem^ IconFile {
    ITaskItem^ get ();
    void set (ITaskItem^ value);
}
member IconFile : ITaskItem with get, set
function get IconFile () : ITaskItem 
function set IconFile (value : ITaskItem)

Property Value

Type: Microsoft.Build.Framework.ITaskItem
The icon file to use for the application.

Remarks

The application icon is expressed in the generated application manifest and is used on the Start menu and in the Uninstall or change a program dialog box. If this input is not specified, a default icon is used. If the task is generating a native manifest, this property is ignored.

.NET Framework Security

See Also

Reference

GenerateApplicationManifest Class

Microsoft.Build.Tasks Namespace