IVsTargetFrameworkAssemblies::GetRequiredTargetFrameworkVersion Method (String^, UInt32)
Visual Studio 2015
Gets the minimum versions of the target framework required for the given assembly to run.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
int GetRequiredTargetFrameworkVersion( String^ szAssemblyFile, [OutAttribute] unsigned int% pTargetFrameworkVersion )
Parameters
- szAssemblyFile
-
Type:
System::String^
[in] Path to the assembly to check.
- pTargetFrameworkVersion
-
Type:
System::UInt32
[out] A WellKnownTargetFrameworkVersions value specifying the required framework version.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
This method will return a framework version only if it can be determined with a given assembly, otherwise it will return TargetFrameworkVersion_Unknown.
From compsvcspkg90.idl:
HRESULT GetRequiredTargetFrameworkVersion(
[in] LPCOLESTR szAssemblyFile,
[out] TARGETFRAMEWORKVERSION *pTargetFrameworkVersion
);
Show: