A project with an out type of class library cannot start directly

Created at 10 Apr 2023, 11:49
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
WI

wilsonedwards72

Joined 10.04.2023

A project with an out type of class library cannot start directly
10 Apr 2023, 11:49


Hi, i recently downloaded visual studio 2022 and would like work on my project on visual studio. I can send everything over from ctrader(icmarkets) to visual studio. All good sending it over code looks the same but I can't debug it. I have spent the whole of the easter break trying to research to fix a problem that keep recurring. it keep coming up with " In order to debug this project, add and executable project to this solution which reference the library. Set the executable project as a start project."

I as i am a novice i am stump how to fixed this problem. Any ideas????


@wilsonedwards72
Replies

firemyst
11 Apr 2023, 06:55 ( Updated at: 11 Apr 2023, 06:56 )

        protected override void Initialize()
        {
            // How to debug:
            // https://help.ctrader.com/ctrader-automate/debugging/#debugging-a-cbotindicator

#if DEBUG
                var result = System.Diagnostics.Debugger.Launch();
#endif
            // ...
            // ...
        }

 

Sample code above.

Link below:

 


@firemyst

wilsonedwards72
11 Apr 2023, 12:35

Still not working

Thank you Firemyst, i went through them again and still not working. There must be something inside ctrader that i haven't tick or allow because i tried another cbot i have and it won't go. i am still at a lost. anymore idea would greatly appreciate.


@wilsonedwards72