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.StringThe 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
- 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.