Compartilhar via


IVsDesignTimeAssemblyResolution.GetTargetFramework Method

Gets the target .NET Framework of the project instance.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Function GetTargetFramework ( _
    <OutAttribute> ByRef ppTargetFramework As String _
) As Integer
int GetTargetFramework(
    out string ppTargetFramework
)
int GetTargetFramework(
    [OutAttribute] String^% ppTargetFramework
)
abstract GetTargetFramework : 
        ppTargetFramework:string byref -> int
function GetTargetFramework(
    ppTargetFramework : String
) : int

Parameters

  • ppTargetFramework
    Type: String%

    [out] The target framework.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsDesignTimeAssemblyResolution Interface

Microsoft.VisualStudio.Shell.Interop Namespace