Adds an item to the MSBuild project, wrapped in a ProjectElement.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Overridable Function AddFileToMsBuild ( _
file As String _
) As ProjectElement
'使用
Dim file As String
Dim returnValue As ProjectElement
returnValue = Me.AddFileToMsBuild(file)
protected virtual ProjectElement AddFileToMsBuild(
string file
)
protected:
virtual ProjectElement^ AddFileToMsBuild(
String^ file
)
protected function AddFileToMsBuild(
file : String
) : ProjectElement
Parameters
file
Type: System.StringThe path of the file to add.
Return Value
Type: Microsoft.VisualStudio.Package.ProjectElement
The ProjectElement that wraps the build item.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.