gmamaladze / globalmousekeyhook

This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
MIT License
1.05k stars 257 forks source link

5.6.0 Compile errors #93

Closed cvdevol closed 6 years ago

cvdevol commented 6 years ago

Compiling with Visual Studio 2015. I get the following errors:

Severity Code Description Project File Line Suppression State Error CS1525 Invalid expression term '[' MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 39 Active Error CS0443 Syntax error; value expected MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 39 Active Error CS1003 Syntax error, ',' expected MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 39 Active Error CS0305 Using the generic type 'KeyValuePair<TKey, TValue>' requires 2 type arguments MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 39 Active Error CS0119 'Combination' is a type, which is not valid in the given context MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 39 Active Error CS0119 'Action' is a type, which is not valid in the given context MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 39 Active Error CS0103 The name 'element' does not exist in the current context MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 39 Active Error CS0103 The name 'element' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 39 Active Error CS0103 The name 'var' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 48 Active Error CS0103 The name 'element' does not exist in the current context MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 48 Active Error CS0103 The name 'element' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 48 Active Error CS0103 The name 'Key' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 50 Active Error CS0103 The name 'Chord' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 50 Active Error CS0103 The name 'All' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 50 Active Error CS0103 The name 'Key' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 52 Active Error CS0103 The name 'ChordLength' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 52 Active Error CS0103 The name 'Key' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 53 Active Error CS0103 The name 'ChordLength' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 53 Active Error CS0103 The name 'Value' does not exist in the current context. MouseKeyHook C:\Users\Kalki\Documents\Visual Studio 2015\Projects\globalmousekeyhook-vNext\MouseKeyHook\KeyCombinationExtensions.cs 54 Active

gmamaladze commented 6 years ago

The reason is that I used new c# 7.0 features like inline out parameter. I am considering wether I should move forward and stay with c# 7.0 syntax or adjust it back to build with c# 6.

cvdevol commented 6 years ago

Unfortunately, I don't have VS2017 yet. My vote is for c#6. :-)

gmamaladze commented 6 years ago

Done. Please pull the newest version from vNext (default branch).

cvdevol commented 6 years ago

Thanks!

cvdevol commented 6 years ago

Note that this now compiles as version 5.5.0.