ProjectNode.SaveMSBuildProjectFileAs Method

Saves the MSBuild project to the supplied file name.

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

Syntax

'宣言
Protected Overridable Sub SaveMSBuildProjectFileAs ( _
    newFileName As String _
)
'使用
Dim newFileName As String

Me.SaveMSBuildProjectFileAs(newFileName)
protected virtual void SaveMSBuildProjectFileAs(
    string newFileName
)
protected:
virtual void SaveMSBuildProjectFileAs(
    String^ newFileName
)
protected function SaveMSBuildProjectFileAs(
    newFileName : String
)

Parameters

  • newFileName
    Type: System.String

    The absolute path of the project file.

Remarks

This method also calls MSBuild to save the project file. It is called by SaveAs method and SetEditLabel before the rename-related events are triggered.

Derived classes should override this method to provide specialized handling of project file renaming.

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace