共用方式為


TaskExtension.Log Property

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

Gets an instance of a TaskLoggingHelperExtension containing task logging methods.

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 ReadOnly Property Log As TaskLoggingHelper
public TaskLoggingHelper Log { get; }
public:
property TaskLoggingHelper^ Log {
    TaskLoggingHelper^ get ();
}
member Log : TaskLoggingHelper with get
function get Log () : TaskLoggingHelper

Property Value

Type: Microsoft.Build.Utilities.TaskLoggingHelper
An instance of a TaskLoggingHelperExtension containing task logging methods.

.NET Framework Security

See Also

Reference

TaskExtension Class

Microsoft.Build.Tasks Namespace