다음을 통해 공유


WriteCodeFragment.OutputFile Property

Gets or sets the path to the file that was generated.

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 Property OutputFile As ITaskItem
[OutputAttribute]
public ITaskItem OutputFile { get; set; }
[OutputAttribute]
public:
property ITaskItem^ OutputFile {
    ITaskItem^ get ();
    void set (ITaskItem^ value);
}
[<OutputAttribute>]
member OutputFile : ITaskItem with get, set
function get OutputFile () : ITaskItem 
function set OutputFile (value : ITaskItem)

Property Value

Type: Microsoft.Build.Framework.ITaskItem
Returns the path to the file that was generated.

Remarks

If setting this property with a file name, the destination folder will be prepended.

If setting this property with a rooted value, the destination folder will be ignored.

If this property is not set, WriteCodeFragment uses the destination folder, an arbitrary file name, and the default extension for the language selected.

.NET Framework Security

See Also

Reference

WriteCodeFragment Class

Microsoft.Build.Tasks Namespace