This documentation is archived and is not being maintained.

IVsProjectUpgradeViaFactory.UpgradeProject Method

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)

int UpgradeProject (
	[InAttribute] string bstrFileName,
	[InAttribute] uint fUpgradeFlag,
	[InAttribute] string bstrCopyLocation,
	out string pbstrUpgradedFullyQualifiedFileName,
	[InAttribute] IVsUpgradeLogger pLogger,
	out int pUpgradeRequired,
	out Guid pguidNewProjectFactory
)
int UpgradeProject (
	/** @attribute InAttribute() */ String bstrFileName, 
	/** @attribute InAttribute() */ UInt32 fUpgradeFlag, 
	/** @attribute InAttribute() */ String bstrCopyLocation, 
	/** @attribute OutAttribute() */ /** @ref */ String pbstrUpgradedFullyQualifiedFileName, 
	/** @attribute InAttribute() */ IVsUpgradeLogger pLogger, 
	/** @attribute OutAttribute() */ /** @ref */ int pUpgradeRequired, 
	/** @attribute OutAttribute() */ /** @ref */ Guid pguidNewProjectFactory
)
JScript does not support passing value-type arguments by reference.

Parameters

bstrFileName

[in]

fUpgradeFlag

[in] Only one may be specified.

bstrCopyLocation

[in] Location of the copy upgrade OR the backup copy location.

pbstrUpgradedFullyQualifiedFileName

[out] Copy upgrade will have a different path - others may change the project name.

pLogger

[in]

pUpgradeRequired

[out]

pguidNewProjectFactory

[out] If a different project factory is used to create the upgraded project, the GUID should be returned here.

Return Value

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

COM Signature

From vsshell80.idl:

[C++]

HRESULT IVsProjectUpgradeViaFactory::UpgradeProject();
Show: