次の方法で共有


IVsSolution3.UpdateProjectFileLocationForUpgrade(String, String) Method

Definition

Notifies a solution to update project file locations.

public:
 int UpdateProjectFileLocationForUpgrade(System::String ^ pszCurrentLocation, System::String ^ pszUpgradedLocation);
public:
 int UpdateProjectFileLocationForUpgrade(Platform::String ^ pszCurrentLocation, Platform::String ^ pszUpgradedLocation);
int UpdateProjectFileLocationForUpgrade(std::wstring const & pszCurrentLocation, std::wstring const & pszUpgradedLocation);
public int UpdateProjectFileLocationForUpgrade (string pszCurrentLocation, string pszUpgradedLocation);
abstract member UpdateProjectFileLocationForUpgrade : string * string -> int
Public Function UpdateProjectFileLocationForUpgrade (pszCurrentLocation As String, pszUpgradedLocation As String) As Integer

Parameters

pszCurrentLocation
String

[in] The current project file location.

pszUpgradedLocation
String

[in] The updated project file location.

Returns

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  
);  

Applies to