The project is not compiled in MSVS2015 under the .NET Framework 4.5. Apparently the compiler does not understand the expression C # 6.0 with the members going into the expressions. If you need a Roslyn compiler, then how to install / set it in the studio? Or am I digging in the wrong direction and the problem is something else?
Link to the project: https://github.com/yarseyah/sentinel
Code that does not compile:
private void AddCopyCommandBinding() { void Handler(object s, ExecutedRoutedEventArgs a) { CopySelectedLogEntries(); } var command = new RoutedCommand("Copy", typeof(GridView)); command.InputGestures.Add(new KeyGesture(Key.C, ModifierKeys.Control, "Copy")); messages.CommandBindings.Add(new CommandBinding(command, Handler)); try { Clipboard.SetData(DataFormats.Text, string.Empty); } catch (COMException) { } } 