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.StringThe current path to the project file.
newFullPath
Type: System.StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.