Condividi tramite


MSBuild.TargetOutputs Property

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

Returns the outputs of the built targets from all the project files. Only the outputs from the targets that were specified are returned, not any outputs that may exist on targets that those targets depend on.

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
<OutputAttribute> _
Public ReadOnly Property TargetOutputs As ITaskItem()
[OutputAttribute]
public ITaskItem[] TargetOutputs { get; }
[OutputAttribute]
public:
property array<ITaskItem^>^ TargetOutputs {
    array<ITaskItem^>^ get ();
}
[<OutputAttribute>]
member TargetOutputs : ITaskItem[] with get
function get TargetOutputs () : ITaskItem[]

Property Value

Type: array<Microsoft.Build.Framework.ITaskItem[]
The outputs of the built targets from all the project files.

.NET Framework Security

See Also

Reference

MSBuild Class

Microsoft.Build.Tasks Namespace