Can't add external reference to Newtonsoft.Json

Created at 06 Nov 2019, 09:15
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!
FI

firemyst

Joined 26.03.2019

Can't add external reference to Newtonsoft.Json
06 Nov 2019, 09:15


Hi there:

I have added an external library reference to my Visual Studio cBot project. It compiles and works fine in Visual Studio.

However, cTrader won't recognize it. I can't debug with it.

Screen capture showing the reference in Visual Studio where it compiles fine:

cTrader won't build it:

And under references for the project in cTrader:

 

What am I doing wrong?

 

Thank you,


@firemyst
Replies

PanagiotisCharalampous
06 Nov 2019, 09:23

Hi FireMyst,

Can you try installing the package using NuGet? I just did it and works like a charm.

Best Regards,

Panagiotis


@PanagiotisCharalampous

firemyst
06 Nov 2019, 09:35 ( Updated at: 21 Dec 2023, 09:21 )

RE:

Panagiotis Charalampous said:

Hi FireMyst,

Can you try installing the package using NuGet? I just did it and works like a charm.

Best Regards,

Panagiotis

Thanks for the suggestion. I did this twice through Visual Studio.

The first time I thought it went ok as everything worked in Visual Studio.

With your reply, I went through and did it again, and like you said, it's working for me now too.

So thank you. I'm not sure what happened the first time around. I suppose I should have tried installing it again before posting. :-/


@firemyst