Answering my own question here. In VB.NET you need to use the module level option infer on.
I was going to just delete this question after I figured out the problem, but 1) I can not, because this question already has an answer, and 2) I am sure that it will still be useful to others.
Happy conclusion.
source
share