Compartir a través de


IVsSolution3.UpdateProjectFileLocationForUpgrade Method

Notifies a solution to update project file locations.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function UpdateProjectFileLocationForUpgrade ( _
    pszCurrentLocation As String, _
    pszUpgradedLocation As String _
) As Integer
int UpdateProjectFileLocationForUpgrade(
    string pszCurrentLocation,
    string pszUpgradedLocation
)
int UpdateProjectFileLocationForUpgrade(
    [InAttribute] String^ pszCurrentLocation, 
    [InAttribute] String^ pszUpgradedLocation
)
abstract UpdateProjectFileLocationForUpgrade : 
        pszCurrentLocation:string * 
        pszUpgradedLocation:string -> int
function UpdateProjectFileLocationForUpgrade(
    pszCurrentLocation : String, 
    pszUpgradedLocation : String
) : int

Parameters

  • pszCurrentLocation
    Type: String

    [in] The current project file location.

  • pszUpgradedLocation
    Type: String

    [in] The updated project file location.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method will tell the solution to update the internal filenames it is keeping for a project. This is used, for example, when a web project is upgraded so the solution knows the correct path to the upgraded web.

COM Signature

From vsshell80.idl:

HRESULT UpdateProjectFileLocationForUpgrade(
    [in] LPCOLESTR pszCurrentLocation,
    [in] LPCOLESTR pszUpgradedLocation
);

.NET Framework Security

See Also

Reference

IVsSolution3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace