Dela via


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.String

    Name of the VSTA project file in projectStorage.

  • vsVersion
    Type: System.Int32

    The version of Visual Studio to target.

  • targetFramework
    Type: System.Int32

    The 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

Return to top