Dela via


HostServices.OnRenameProject Method

Updates the host services table when a project is named or renamed.

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.Execution
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Sub OnRenameProject ( _
    oldFullPath As String, _
    newFullPath As String _
)
public void OnRenameProject(
    string oldFullPath,
    string newFullPath
)
public:
void OnRenameProject(
    String^ oldFullPath, 
    String^ newFullPath
)
member OnRenameProject : 
        oldFullPath:string * 
        newFullPath:string -> unit
public function OnRenameProject(
    oldFullPath : String, 
    newFullPath : String
)

Parameters

  • oldFullPath
    Type: System.String

    The current path to the project file.

  • newFullPath
    Type: System.String

    The new path to the project file.

Remarks

A project is named when it is given a new full path and the old path is null.

.NET Framework Security

See Also

Reference

HostServices Class

Microsoft.Build.Execution Namespace