Referencing a Source /Algo code in my cBot
Referencing a Source /Algo code in my cBot
23 Mar 2018, 18:04
Hi,
Is it possible to include cAlgo source code file (.cs) or compiled code (.algo) to my cBot source? I mean I have a lot of useful functions in my source library - myfunctions. If I start a new cBot/project I need to insert the source of mylibrary into the new cBot code body, but it is very complicated and dangeorus if I had to make some modifications in my source library. Impossible to handle and keep all of my cBots up-to-date.
I see the Reference Manager option/Add Reference command in the Editor but I don't know how to use it properly.
How can I write the cAlgo source which contains my funtions - to a library what I can use in my cBots as reference?
Thanks,
Norbert
Replies
PanagiotisCharalampous
26 Mar 2018, 16:03
Hi FMogyi,
You don't need any special cAlgo libraries. cAlgo can reference any .Net library since it is a .Net application. Here you can find how to create a .Net library.
Best Regards,
Panagiotis
@PanagiotisCharalampous
DonaldD
25 Mar 2018, 11:41 ( Updated at: 21 Dec 2023, 09:20 )
Hi FMogyi,
You can maintain your library as a separate C# project and reference it through the Libraries section in the Reference Manager. I paste a screenshot below
@DonaldD