IVsProjectUpgradeViaFactory::UpgradeProject Method (String^, UInt32, String^, String^, IVsUpgradeLogger^, Int32, Guid)
Visual Studio 2015
Upgrades a project.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int UpgradeProject( String^ bstrFileName, unsigned int fUpgradeFlag, String^ bstrCopyLocation, [OutAttribute] String^% pbstrUpgradedFullyQualifiedFileName, IVsUpgradeLogger^ pLogger, [OutAttribute] int% pUpgradeRequired, [OutAttribute] Guid% pguidNewProjectFactory )
Parameters
- bstrFileName
-
Type:
System::String^
[in] Project file of project to update.
- fUpgradeFlag
-
Type:
System::UInt32
[out] Upgrade types specified by the __VSPPROJECTUPGRADEVIAFACTORYFLAGS enumeration. Only one may be specified.
- bstrCopyLocation
-
Type:
System::String^
[in] Location of the copy upgrade, or the backup copy location.
- pbstrUpgradedFullyQualifiedFileName
-
Type:
System::String^
[out] Copy upgrade will have a different path - others may change the project name.
- pLogger
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsUpgradeLogger^
[in] A IVsUpgradeLogger interface to the upgrade logger.
- pUpgradeRequired
-
Type:
System::Int32
[out] true if the project needs upgrading. false if the project is already up-to-date.
- pguidNewProjectFactory
-
Type:
System::Guid
[out] If a different project factory is used to create the upgraded project, the GUID should be returned here.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
[C++]
HRESULT UpgradeProject(
[in] BSTR bstrFileName,
[in] VSPUVF_FLAGS * fUpgradeFlags,
[in] BSTR bstrCopyLocation,
[out] BSTR * pbstrUpgradedFullyQualifiedFileName,
[in] IVsUpgradeLogger * pLogger,
[out] BOOL * pUpgradeRequired,
[out] GUID * pguidNewProjectFactory,
);
Show: