ProjectStorage.UpgradeVstaProject Method (String, IProjectStorage, IEnumerable<String>, IEnumerable<Reference>, Int32, Int32)
Updates a VSTA 2.0 or 1.1 project to a Microsoft Visual Studio Tools for Applications 2013 project and loads the project files into a new instance of IProjectStorage.
Namespace: Microsoft.VisualStudio.Tools.Applications
Assembly: Microsoft.VisualStudio.Tools.Applications (in Microsoft.VisualStudio.Tools.Applications.dll)
Syntax
public static IProjectStorage UpgradeVstaProject(
string projectFileName,
IProjectStorage projectStorage,
IEnumerable<string> referencesToRemove,
IEnumerable<Reference> referencesToAdd,
int vsVersion,
int targetFramework
)
public:
static IProjectStorage^ UpgradeVstaProject(
String^ projectFileName,
IProjectStorage^ projectStorage,
IEnumerable<String^>^ referencesToRemove,
IEnumerable<Reference^>^ referencesToAdd,
int vsVersion,
int targetFramework
)
static member UpgradeVstaProject :
projectFileName:string *
projectStorage:IProjectStorage *
referencesToRemove:IEnumerable<string> *
referencesToAdd:IEnumerable<Reference> *
vsVersion:int *
targetFramework:int -> IProjectStorage
Public Shared Function UpgradeVstaProject (
projectFileName As String,
projectStorage As IProjectStorage,
referencesToRemove As IEnumerable(Of String),
referencesToAdd As IEnumerable(Of Reference),
vsVersion As Integer,
targetFramework As Integer
) As IProjectStorage
Parameters
projectFileName
Type: System.StringName of the VSTA project file in projectStorage.
projectStorage
Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorageAn instance of IProjectStoragecontaining the project to upgrade and its project items.
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.
vsVersion
Type: System.Int32The version of Visual Studio to target.
targetFramework
Type: System.Int32The specific .NET Framework to target.
Return Value
Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorage
The IProjectStorage for the upgraded project.
See Also
ProjectStorage Class
Microsoft.VisualStudio.Tools.Applications Namespace