Get the SharePoint version programmatically
This post is about a question that many developers ask themselves, ¿how can I get the SharePoint version programmatically?
There are at least three possible ways to do this (that I'm aware of):
In my case, I'm always using WMI and Windows provides us with the right tool (WBEMTEST.EXE) to try our WQL queries
Regards,
Angel