It does the same no matter what code I use. For example this is what I get when trying to build the Sample Martingale cBot which came with FxPro cTrader 3.5 Error CS5001: Program 'c:\Users\corin\Documents\cAlgo\Sources\Robots\Sample Martingale cBot\Sample Martingale cBot\bin\Debug\Sample Martingale cBot.exe' does not contain a static 'Main' method suitable for an entry point. The same error whether I build from within cTrader or Visual Studio. Interestingly, no errors in cTrader until I installed Visual Studio.Now both produce the same error.
Here is a screen shot of the About, Visual Studio:
Does it maybe have something to do with the operating system? I am using Windows 10 Home.