Partilhar via


IVsProjectFlavorUpgradeViaFactory.UpgradeProjectFlavor_CheckOnly Method

Definition

Checks if a flavored project upgrade is possible.

public int UpgradeProjectFlavor_CheckOnly (string pszFileName, Microsoft.VisualStudio.Shell.Interop.IVsUpgradeBuildPropertyStorage pUpgradeBuildPropStg, string pszProjFileXMLFragment, string pszUserFileXMLFragment, Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger pLogger, out int pUpgradeRequired, out Guid pguidNewProjectFactory);
abstract member UpgradeProjectFlavor_CheckOnly : string * Microsoft.VisualStudio.Shell.Interop.IVsUpgradeBuildPropertyStorage * string * string * Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger * int * Guid -> int
Public Function UpgradeProjectFlavor_CheckOnly (pszFileName As String, pUpgradeBuildPropStg As IVsUpgradeBuildPropertyStorage, pszProjFileXMLFragment As String, pszUserFileXMLFragment As String, pLogger As IVsUpgradeLogger, ByRef pUpgradeRequired As Integer, Optional ByRef pguidNewProjectFactory As Guid) As Integer

Parameters

pszFileName
String

Name of file to upgrade.

pUpgradeBuildPropStg
IVsUpgradeBuildPropertyStorage

Used to read and update build related properties and imports.

pszProjFileXMLFragment
String

Project file XML fragment.

pszUserFileXMLFragment
String

Project user file XML fragment.

pLogger
IVsUpgradeLogger

A IVsUpgradeLogger upgrade logger.

pUpgradeRequired
Int32

Specifies upgrade is required.

pguidNewProjectFactory
Guid

Pointer to the project factory.

Returns

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

Remarks

From vsshell90.idl:

HRESULT UpgradeProjectFlavor_CheckOnly(  
    [in]  LPCOLESTR           pszFileName,  
    [in]  IVsUpgradeBuildPropertyStorage * pUpgradeBuildPropStg,  
    [in]  LPCOLESTR          pszProjFileXMLFragment,  
    [in]  LPCOLESTR          pszUserFileXMLFragment,  
    [in]  IVsUpgradeLogger * pLogger,  
    [out] BOOL             * pUpgradeRequired,  
    [out, optional] GUID   * pguidNewProjectFactory  
);  

Applies to