Topics
Replies
jaco.semko
27 Dec 2024, 15:38
( Updated at: 30 Dec 2024, 07:15 )
RE: RE:
patrock333 said:
YrpWayne said:
<PropertyGroup> <AlgoBuild>False</AlgoBuild></PropertyGroup>
Hope that helps someone else.
Thanks for this.
I couldn't find a solution anywhere to get rid of that error.
It took me a while to figure out how to add this to my csproj file, I'm new to C# and Visual Studio.
I just added it in C:\...\.nuget\packages\ctrader.automate\1.0.7\build\cTrader.Automate.targets.
Good morning. I am new right now to all of this. Did it change something? Why would you need to put it in this directory? I tried it at some different spots, but still got the “error CT0002: Assembly must contain algo type.” I appreciate the help. I also tried it already to put it into the .csproj-file, but it still ddnt work… Thank you,
Best regards
Jacob
@jaco.semko
jaco.semko
02 Jan 2025, 12:02
RE: Error message: CT0002 while coding in VS Code
EDG777 said:
Thanks for the response,
In VS Code I went multiple times step by step with the cTrader How to section explanation of how to build cAlgo indis and cBots in other IDE, and in the how to section they have this line included with adding the cTrader.Automate.package
( dotnet add .\MyIndicator\MyIndicator.csproj package cTrader.Automate ) and I just tested it again and it still not works… Same Error, but the code is correct and I went after the step by step explanation…
So I just work with Visual studio for now, but thanks for responding, I appreciate it!
Best regards,
Jacob
@jaco.semko