Ну полная ошибка
Error 3 'OfType' is not a member of 'System.Text.RegularExpressions.MatchCollection'
в следующих строках кода (фигурные скобки в regex.Matches (input) .OfType )
For Each group As Object In regex.Matches(input).OfType(Of Match)().Select(Function(c) c.Value.ToLowerInvariant()).Where(Function(c) Not keywords.Contains(c)).GroupBy(Function(c) c).OrderByDescending(Function(c) c.Count()).ThenBy(Function(c) c.Key)
Console.WriteLine(group.Key)
Next
То, что я не понимаю, это то, почему этот работает правильно на VS2008, но не работает на VS2010.