I'm trying to use HttpClient in a VB script (.vb extension). The script is (for now):
Imports System.Net.Http
Public Sub Main(ByVal param As Object)
Dim client As HttpClient = New HttpClient()
End Sub
When I run this script from HS3, it doesn't compile. The HomeSeer log says:
Can't figure out why HttpClient() can't be found. In another script, I use System.Net.WebClient and it runs just fine.
Maybe I'm missing some DLL or other package that has HttpClient in it?
Anyone have any tips? I am using HomeSeer version 3.0.0.548 in Windows 10 Pro - Work Station.
Imports System.Net.Http
Public Sub Main(ByVal param As Object)
Dim client As HttpClient = New HttpClient()
End Sub
When I run this script from HS3, it doesn't compile. The HomeSeer log says:
Apr-13 10:11:09 AM | Error | Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\Notify2.vb: Type 'HttpClient' is not defined. |
Apr-13 10:11:09 AM | Error | Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\Notify2.vb: Namespace or type specified in the Imports 'System.Net.Http' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. |
Apr-13 10:11:09 AM | Error | Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\Notify2.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. |
Maybe I'm missing some DLL or other package that has HttpClient in it?
Anyone have any tips? I am using HomeSeer version 3.0.0.548 in Windows 10 Pro - Work Station.
Comment