Bagikan melalui


ProjectStorage.RetargetVstaProject Method (IProjectStorage, Int32, Int32, IEnumerable<String>, IEnumerable<Reference>)

 

Changes an existing Visual Studio Tools for Applications project to target a different version of Visual Studio or the .NET Framework.

Namespace:   Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications (in Microsoft.VisualStudio.Tools.Applications.dll)

Syntax

public static IProjectStorage RetargetVstaProject(
    IProjectStorage projectStorage,
    int vsVersion,
    int targetFramework,
    IEnumerable<string> referencesToRemove,
    IEnumerable<Reference> referencesToAdd
)
public:
static IProjectStorage^ RetargetVstaProject(
    IProjectStorage^ projectStorage,
    int vsVersion,
    int targetFramework,
    IEnumerable<String^>^ referencesToRemove,
    IEnumerable<Reference^>^ referencesToAdd
)
static member RetargetVstaProject : 
        projectStorage:IProjectStorage *
        vsVersion:int *
        targetFramework:int *
        referencesToRemove:IEnumerable<string> *
        referencesToAdd:IEnumerable<Reference> -> IProjectStorage
Public Shared Function RetargetVstaProject (
    projectStorage As IProjectStorage,
    vsVersion As Integer,
    targetFramework As Integer,
    referencesToRemove As IEnumerable(Of String),
    referencesToAdd As IEnumerable(Of Reference)
) As IProjectStorage

Parameters

  • 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 retargeted project.

See Also

ProjectStorage Class
Microsoft.VisualStudio.Tools.Applications Namespace

Return to top