Description
Gets the version number of the .NET Core runtime that is currently used to load DLL.
Applies to
DotNetAssembly objects
Syntax
objectname.GetDotNetCoreVersion()
Return value
String.
Returns the version number of .NET Core runtime; or returns an empty string if .NET Framework is used.
Examples
The following example returns the latest .NET Core version that is installed on the machine.
long ll_return
string ls_version
DotNetAssembly lcs_ass
lcs_ass = create DotNetAssembly
//Uses the latest .NET core version to load DLL
ll_return = lcs_ass.LoadWithDotNetCore ("Appeon.Simple.DLL")
if ll_return < 0 then
MessageBox ("Load dll failed", lcs_ass.errortext)
return
end if
//Returns the latest .NET core version
ls_version = lcs_ass.GetDotNetCoreVersion( )
See also


