We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

IVsProjectUpgradeViaFactory.UpgradeProject_CheckOnly Method

Checks to see if a project needs to be upgraded.

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

int UpgradeProject_CheckOnly(
	string bstrFileName,
	IVsUpgradeLogger pLogger,
	out int pUpgradeRequired,
	out Guid pguidNewProjectFactory,
	out uint pUpgradeProjectCapabilityFlags


Type: System.String
[in] Project file of project to update.
Type: Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger
[in] A IVsUpgradeLogger interface to the upgrade logger.
Type: System.Int32
[out] true if the project needs upgrading. false if the project is already up-to-date.
Type: System.Guid
[out] If a different project factory is used to create the upgraded project, the GUID should be returned here.
Type: System.UInt32
[in] Upgrade types specified by the __VSPPROJECTUPGRADEVIAFACTORYFLAGS enumeration. Only one may be specified.

Return Value

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

COM Signature

From vsshell80.idl:


HRESULT UpgradeProject_CheckOnly(
    [in]  BSTR               bstrFileName,
    [in]  IVsUpgradeLogger * pLogger,
    [out] BOOL             * pUpgradeRequired,
    [out] GUID             * pguidNewProjectFactory,
    [out] VSPUVF_FLAGS     * pUpgradeProjectCapabilityFlags,