Back

Issues with Lean Build on Visual Studio 2019

Hi,

I have been following the readme instructions on the Lean Github for Windows 10 installation. I have installed Visual Studio 2019, can see the nuget package manager inside it. Cloned Lean and fed the .sln file to Visual Studio. But while building I am getting errors for several .dll files and .exe files missing

10>------ Build started: Project: QuantConnect.Tests, Configuration: Debug Any CPU ------
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2081,5): warning MSB3274: The primary reference "Accord, Version=3.6.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.6.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.6.1".
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2081,5): warning MSB3275: The primary reference "Accord.Math, Version=3.6.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the assembly "Accord, Version=3.6.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7" which was built against the ".NETFramework,Version=v4.6.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.6.1".
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2081,5): warning MSB3274: The primary reference "Accord.Math, Version=3.6.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.6.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.6.1".
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2081,5): warning MSB3274: The primary reference "Accord.Math.Core, Version=3.6.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.6.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.6.1".
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2081,5): warning MSB3275: The primary reference "Accord.Math, Version=3.6.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the assembly "Accord.Math.Core, Version=3.6.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7" which was built against the ".NETFramework,Version=v4.6.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.6.1".
10>CSC : error CS0006: Metadata file 'C:\Users\Abhishek\Documents\Python3 Scripts\Projects\Lean\Algorithm.CSharp\bin\Debug\QuantConnect.Algorithm.CSharp.dll' could not be found
10>CSC : error CS0006: Metadata file 'C:\Users\Abhishek\Documents\Python3 Scripts\Projects\Lean\Algorithm.Framework\bin\Debug\QuantConnect.Algorithm.Framework.dll' could not be found
10>CSC : error CS0006: Metadata file 'C:\Users\Abhishek\Documents\Python3 Scripts\Projects\Lean\Engine\bin\Debug\QuantConnect.Lean.Engine.dll' could not be found
10>CSC : error CS0006: Metadata file 'C:\Users\Abhishek\Documents\Python3 Scripts\Projects\Lean\Launcher\bin\Debug\QuantConnect.Lean.Launcher.exe' could not be found
10>CSC : error CS0006: Metadata file 'C:\Users\Abhishek\Documents\Python3 Scripts\Projects\Lean\Report\bin\Debug\QuantConnect.Report.exe' could not be found
10>CSC : error CS0006: Metadata file 'C:\Users\Abhishek\Documents\Python3 Scripts\Projects\Lean\Research\bin\Debug\QuantConnect.Research.dll' could not be found
10>CSC : error CS0006: Metadata file 'C:\Users\Abhishek\Documents\Python3 Scripts\Projects\Lean\ToolBox\bin\Debug\QuantConnect.ToolBox.exe' could not be found
========== Build: 0 succeeded, 8 failed, 11 up-to-date, 2 skipped ==========

 

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.


Hi Abhishek,

It looks like the root issue is that Lean is looking for .NETFramework v4.6.1, but you are running v4.6.2. Can you try modifying the .NETFramework version? If this doesn't solve the issue, please let us know and we can help find a solution.

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.


Hi Jack,

Actually I already tried that one. I downloaded v4.6.2 and set it as the target in VS2019 but of no use. Does lean installation works more smoothly with VS2017, in which case i'll download that one.

0

Hi Abhishek Gupta ,

Lean installation works smoothly with VS2019 (even with the Community Edition). You may need to uninstall Visual Studio, be sure that .NETFramework v4.6.2 is installed (it may require a system reboot), and reinstall it.

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.


Hi Alexandre,

Tried uninstalling and reinstalling both VS2019 and .net framework, changing the target frameworks, repeated git clone also but giving same error again. That's fine, I'll just use the webapp. However, it would be great if there's some other way to install this on windows without using VS as I don't use it. Thanks a lot for your help on this.

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