- Home
- Forum
- cTrader Automate
- Microsoft.ML in a cBot
Microsoft.ML in a cBot
Microsoft.ML in a cBot
Is it possible to use Microsoft.ML in a cBot?
At the moment when tried following, it didn't recognize it.
using Microsoft.ML;
Any idea how can I use ML package in a cBot?
RE:
PanagiotisChar said:
Hi there,
Did you install the package from NuGet?
I did install it into cbot folder where the project file is (.csproj) and it was installed successfully. command used to install:
dotnet add package Microsoft.ML
However, on cBot build, I get the following error:
Eror CT0201: Pachake "Microsoft.ML" is not supported.
RE:
Thanks for your response.
Now I did select sdk 7 in 'Select Compiler' as on my computer I have dotnet-sdk-7.0.203 installed.
Though I still have error but now error is:
The type or namepsace name 'ML' doesn't exist in namespace 'Microsoft'
Hi,
Hard to tell what you are doing wrong without your project file. I am able to build my cBot in VS without a problem
Builds fine in cTrader too even if there are some false positives highlighed by the editor
RE:
I tried a simple hello cBot, just using ML library. So this one, I am able to build in Visual Studio but not in cTrader, it says build failed. So maybe that's what I need to do, build in Visual Studio and then run in cTrader