IVsProjectFlavorUpgradeViaFactory.UpgradeProjectFlavor Method

Definition

Upgrades a flavored project.

public int UpgradeProjectFlavor (string pszFileName, Microsoft.VisualStudio.Shell.Interop.IVsUpgradeBuildPropertyStorage pUpgradeBuildPropStg, string pszProjFileXMLFragment, string pszUserFileXMLFragment, Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger pLogger, out int pUpgradeRequired, string[] pbstrUpgradedProjFileXMLFragment, string[] pbstrUpgradedUserFileXMLFragment, out Guid pguidNewProjectFactory);
abstract member UpgradeProjectFlavor : string * Microsoft.VisualStudio.Shell.Interop.IVsUpgradeBuildPropertyStorage * string * string * Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger * int * string[] * string[] * Guid -> int
Public Function UpgradeProjectFlavor (pszFileName As String, pUpgradeBuildPropStg As IVsUpgradeBuildPropertyStorage, pszProjFileXMLFragment As String, pszUserFileXMLFragment As String, pLogger As IVsUpgradeLogger, ByRef pUpgradeRequired As Integer, Optional pbstrUpgradedProjFileXMLFragment As String(), Optional pbstrUpgradedUserFileXMLFragment As String(), 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.

pbstrUpgradedProjFileXMLFragment
String[]

XML fragment returned by the flavored project.

pbstrUpgradedUserFileXMLFragment
String[]

XML fragment returned by the flavored user project.

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(  
    [in]  LPCOLESTR           pszFileName,  
    [in]  IVsUpgradeBuildPropertyStorage * pUpgradeBuildPropStg,  
    [in]  LPCOLESTR          pszProjFileXMLFragment,  
    [in]  LPCOLESTR          pszUserFileXMLFragment,  
    [in]  IVsUpgradeLogger * pLogger,  
    [out] BOOL             * pUpgradeRequired,  
    [out, optional] BSTR   * pbstrUpgradedProjFileXMLFragment,  
    [out, optional] BSTR   * pbstrUpgradedUserFileXMLFragment,  
    [out, optional] GUID   * pguidNewProjectFactory  
);  

Applies to