UpgradeVsaProject Method
Parses the VSA project and generates a Microsoft Visual Studio Tools for Applications 2012 (VSTA) project from the VSA project data. Also loads the project files into an instance of IProjectStorage Interface.
Syntax
HRESULT UpgradeVsaProject(BSTR bstrProjectFileName, IProjectStorage* pSourceProjectStorage, BSTR bstrMSBuildProjectTemplate, SAFEARRAY* psaReferencesToRemove, SAFEARRAY* psaReferencesToAdd, IOptions* pCustomParameters, IProjectStorage** ppProjectStorage);
Parameters
bstrProjectFileName
[in] Name of the VSA project file in pSourceProjectStorage.
pSourceProjectStorage
[in] An instance of IProjectStorage containing the project to upgrade.
bstrMSBuildProjectTemplate
[in] A Microsoft Visual Studio Tools for Applications 2012 compatible MSBuild project template already populated with host information.
psaReferencesToRemove
[in] An array of BSTRs containing the names of the references to remove.
psaReferencesToAdd
[in] An array of IReferences containing the names and optional hint paths of the references to add.
pCustomParameters
[in] A pointer to a collection pairs of template parameters and their values. Inside the project created from the bstrMSBuildProjectTemplate , the values will be substituted in place of the corresponding template parameters.
ppProjectStorage
[out, retval] The IProjectStorage for the upgraded project.
Return Value
One of the standard HRESULT values.
Requirements
DLL |
VstaCore.dll |
Library |
VstaCore.lib |
Header |
Vsta.h |