Hello,
I am testing out lean with Visual Studio 2019 + backtesting plugin. If I check out lean and do all of my work in the lean project, things seem to work as expected. However it seems non-optimal to keep my code in the lean repo. I need to fork it on github, then routinely pull updates from upstream when I really I would just like to have my own repo/project and add lean as a depenendeny.
I tried this by creating a new project/solution. I installed lean from nuget in my Visual Studio project and then wrote my code in my new project. When I build I get an error from Nuget that says it can't find "pakcages.{0}.config" in my project. Which is odd because I am configured for Package Reference not packages.config.
Is there a tutorial on best practices for setting up algo code in its own repo and project, and then just installing lean as a dependency? Or do I need to do my work in the lean codebase?
How do people using Visual Studio 2019 organize their work typically?
Rahul Chowdhury
Hey Kenneth,
We suggest working in the Lean codebase instead of adding Lean as a dependency. By working in the Lean codebase, you can navigate through Lean's code when you want to know how a certain element of Lean works. Hope that helped! If there are any other questions you have, please don't hesitate to ask!
Best
Rahul
Kenneth Caruso
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!