Arduino leonardo Serial Write to Visual studio ?

You have posted a lot of code. How about writing the shortest possible sketch that does nothing but communicate with your VS program so that it is easier to see what the problem is.

...R