ProjectStorage.UpgradeVsaProject Method (String, IProjectStorage, String, IEnumerable<String>, IEnumerable<Reference>, Dictionary<String, String>)
Parses the VSA project and generates a Microsoft Visual Studio Tools for Applications 2013 (VSTA) project from the VSA project data. Also loads the project files into an instance of IProjectStorage.
Namespace: Microsoft.VisualStudio.Tools.Applications
Assembly: Microsoft.VisualStudio.Tools.Applications (in Microsoft.VisualStudio.Tools.Applications.dll)
Syntax
public static IProjectStorage UpgradeVsaProject(
string projectFileName,
IProjectStorage projectStorage,
string msBuildProjectTemplate,
IEnumerable<string> referencesToRemove,
IEnumerable<Reference> referencesToAdd,
Dictionary<string, string> customParameters
)
public:
static IProjectStorage^ UpgradeVsaProject(
String^ projectFileName,
IProjectStorage^ projectStorage,
String^ msBuildProjectTemplate,
IEnumerable<String^>^ referencesToRemove,
IEnumerable<Reference^>^ referencesToAdd,
Dictionary<String^, String^>^ customParameters
)
static member UpgradeVsaProject :
projectFileName:string *
projectStorage:IProjectStorage *
msBuildProjectTemplate:string *
referencesToRemove:IEnumerable<string> *
referencesToAdd:IEnumerable<Reference> *
customParameters:Dictionary<string, string> -> IProjectStorage
Public Shared Function UpgradeVsaProject (
projectFileName As String,
projectStorage As IProjectStorage,
msBuildProjectTemplate As String,
referencesToRemove As IEnumerable(Of String),
referencesToAdd As IEnumerable(Of Reference),
customParameters As Dictionary(Of String, String)
) As IProjectStorage
Parameters
projectFileName
Type: System.StringName of the VSA project file in projectStorage.
projectStorage
Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorageAn instance of IProjectStorage containing the project to upgrade and its project items.
msBuildProjectTemplate
Type: System.StringA Microsoft Visual Studio Tools for Applications 2013 compatible MSBuild project template already populated with host information.
referencesToRemove
Type: System.Collections.Generic.IEnumerable<String>The list of references to remove.
referencesToAdd
Type: System.Collections.Generic.IEnumerable<Reference>The list of references to add.
customParameters
Type: System.Collections.Generic.Dictionary<String, String>An T:System.Collections.IDictionary(TKey,TValue) of template parameters and their values. Inside the project created from the msBuildProjectTemplate, the values will be substituted in place of the corresponding template parameters.
Return Value
Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorage
Returns IProjectStorage.
See Also
ProjectStorage Class
Microsoft.VisualStudio.Tools.Applications Namespace