Bagikan melalui


IVsDesignTimeAssemblyResolution.GetTargetFramework Method

Gets the target .Net framework of the project instance.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.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: System.String%
    [out] The target framework.

Return Value

Type: System.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