I have installed the latest VS2022 and the latest TinyCLR extension. If I create a TinyCLR application, instellisense will not work. It does not show any information for neither .NET nor TinyCLR types. If I create a Windows Forms Application intellisense works as expected.
I have tried to repair and update VS2022 and the extension, but the result is the same.
Exit VS and try deleting your bin, obj, and (most importantly) .vs/ directory. The reason is that VS caches a copy of mscorlib in .vs/ and if the signature doesn’t match the TinyCLR one that you are building against (and it won’t) then you won’t get Intellisense. Not a sure fix, but one thing to double check.
I also am sorely disappointed that there’s no XML documentation for the GHI classes. I have been looking around everywhere for any working sample code on the WiFi module to no avail, so started walking the classes in the namespaces - and of course! No XML!
This is just basic developer 101 - without class / method descriptions, a number of the classes are mysteryware.
I can’t agree more! The source code to the C# part of TinyCLR can be found on GitHub here. I have found that some of the code is actually documented, but they have not enabled the generation of XML documentation, so it does not show up in VS. A work-around is to download the repo, enable XML and recompile it. Then reference these dlls.
I have filed an Issue for this at their GitHub repo, I hope that they will include it in the next release.
If you are using a GHI board, you can find the wifi tutorial here.