When I tried to run “lean backtest myproject” I get this error: 

/LeanCLI/CoinGeckoTest.csproj : error NU1202: Package QuantConnect.Lean 2.5.16913 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package QuantConnect.Lean 2.5.16913 supports: net9.0 (.NETCoreApp,Version=v9.0) /LeanCLI/CoinGeckoTest.csproj : error NU1202: Package QuantConnect.DataSource.Libraries 2.5.16913 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package QuantConnect.DataSource.Libraries 2.5.16913 supports: net9.0 (.NETCoreApp,Version=v9.0) /Library/CSharpLibrary/CSharpLibrary.csproj : error NU1202: Package QuantConnect.Lean 2.5.16913 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package QuantConnect.Lean 2.5.16913 supports: net9.0 (.NETCoreApp,Version=v9.0) [/LeanCLI/CoinGeckoTest.csproj] /Library/CSharpLibrary/CSharpLibrary.csproj : error NU1202: Package QuantConnect.DataSource.Libraries 2.5.16913 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package QuantConnect.DataSource.Libraries 2.5.16913 supports: net9.0 (.NETCoreApp,Version=v9.0) [/LeanCLI/CoinGeckoTest.csproj]

 

    So I changed the to 9.0, but now I get this error:

 kevin@ubuntu-s-1vcpu-1gb-amd-nyc1-01:~/qcnew/CoinGeckoTest$ lean backtest . Error: This project is targeting Net 9.0 and Net 6.0 is required. Please update the "Target Framework" project setting in VSCode to the new SDK or modify the csproj file directly to "net6.0". 

 

    Not sure what to do. I downgraded the lean + datasource libraries to version to 2.5.16704 because that's what ChatGPT But then I get this error:

 

    20250214 14:32:59.366 ERROR:: <>c__DisplayClass4_0.<.ctor>b__0(): System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Could not load type 'QuantConnect.Data.ISymbolProvider' from assembly 'QuantConnect.Common, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeModule.GetTypes() at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog() at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetEnumerator() at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerabl1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerabl1 source) at QuantConnect.Util.Composer.<>c__DisplayClass4_0.<.ctor>b__0() in Common/Util/Composer.cs:line 106 System.TypeLoadException: Could not load type 'QuantConnect.Data.ISymbolProvider' from assembly 'QuantConnect.Common, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.