Cannot build a shared class lib package with cTrader.Automate package. Error "Assembly must contain algo type"

Created at 01 Jul 2023, 16:33
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!
Kaspricci's avatar

Kaspricci

Joined 24.05.2023

Cannot build a shared class lib package with cTrader.Automate package. Error "Assembly must contain algo type"
01 Jul 2023, 16:33


Dear all,

I need some support for adding a shared project to my Robots.

I have created a new c# "Utils" class library project and added some class files for technical analysis. As those classes make references to cTrader.API, I added the Nuget package (dotnet add Utils.csproj package cTrader.Automate). If I now want to build my project I always get the error message that "Assembly must contain algo type".

Any idea what I am doing wrong?

Thanks in advance


@Kaspricci
Replies

firemyst
02 Jul 2023, 08:00

 

 


@firemyst

Kaspricci
02 Jul 2023, 10:24

RE:

firemyst said:

 

 

Thanks a lot!


@Kaspricci