ProjectNode.AddFileFromTemplate Method

Adds a file to the project from a template.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Sub AddFileFromTemplate ( _
    source As String, _
    target As String _
)
'使用
Dim instance As ProjectNode
Dim source As String
Dim target As String

instance.AddFileFromTemplate(source, _
    target)
public virtual void AddFileFromTemplate(
    string source,
    string target
)
public:
virtual void AddFileFromTemplate(
    String^ source, 
    String^ target
)
public function AddFileFromTemplate(
    source : String, 
    target : String
)

Parameters

  • target
    Type: System.String

    Full path of file once it is added to the project.

Remarks

This method creates the file's parent directory if necessary and creates a new file from the given template. Override AddFileFromTemplate if you want to customize this behavior.

Permissions

See Also

Concepts

IronPython Sample

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace