Error CT0201 System.ValueTuple not supported

Created at 04 Apr 2022, 13:24
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!
GE

gennimatas

Joined 19.09.2018

Error CT0201 System.ValueTuple not supported
04 Apr 2022, 13:24


Indicator targeting net48 and referencing System.ValueTuple Nuget package is compiled with vs2019 and working on beta 4.2.0 but embedded compiler reports error CT0201 Package "System.Valuetuple" not supported.

How to reference valuetuple for embedded compiler?


@gennimatas
Replies

amusleh
05 Apr 2022, 09:54

Hi,

When you are using Nuget packages on your Indicators/cBots that target .NET framework you have to use the .NET SDK compiler, you can't use embedded compiler for those types of Indicators/cBots.

You can change the .NET compiler from your cTrader settings -> Automate tab.


@amusleh