Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
projectStorage
Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorageAn IProjectStorage containing the project to retarget.
vsVersion
Type: System.Int32The version of Visual Studio to target.
targetFramework
Type: System.Int32The specific .NET Framework to target.
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.
Return Value
Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorage
The IProjectStorage for the retargeted project.
See Also
ProjectStorage Class
Microsoft.VisualStudio.Tools.Applications Namespace