Back

Error CA1305 The behavior of 'StringBuilder.AppendFormat

I am trying to install lean and use it with python.

I stacked at step:

Build the solution by clicking Build Menu -> Build Solution (this should trigger the Nuget package restore)
Qhen I click Build Solution multiplie warnings and erros pop up. First error is:


Severity Code Description Project File Line Suppression State
Error CA1305 The behavior of 'StringBuilder.AppendFormat(string, object, object, object)' could vary based on the current user's locale settings. Replace this call in 'Log.VarDump(object, [int])' with a call to 'StringBuilder.AppendFormat(IFormatProvider, string, object, object, object)'. QuantConnect.Logging C:\Users\Mislav\Lean\Logging\Log.cs 204 Active

How can I solve this error?

Update Backtest







0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Thanks for posting here Mislav;

 - Are you using Visual Studio?

 - Are you using master LEAN or an old build/branch? Did you change anything?  

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


I have installed Visual studio 2019 only for this project (I don't programm in C#).

 

I use master. I used git command to clone repo:

git clone https://github.com/QuantConnect/Lean.git

 

0

Hi Mislav,

Sorry for the wait and inconvenience. Can you please try building a clean install of Lean? Try cloning the latest version of the master branch and then try to build the project again. Let us know what happens so that we can assist further.

Best
Rahul 

1

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Now, when I click build solution, it doesn't return an error. It's working.

0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed