.NET Version (eg., dotnet --info):
.NET Framework 4.6.1
What did you do?
I am using the 0.3.0 version NuGet package.
I tried to replicate the example at https://www.microsoft.com/net/learn/apps/machine-learning-and-ai/ml-dotnet/get-started/windows, with the small change of replacing the classifier with a LightGbmClassifier. I was able to do this with a .NET Core application (after I understood I had to add the Microsoft.ML.LightGBM Nuget package). But I need to run this in a full .NET framework application. So I followed the same procedure for a .NET Framework 4.6.1 console application. But this failed when I tried to add the Microsoft.ML.LightGBM Nuget package.
What happened?
Microsoft.ML.LightGBM depends on 'LightGBM 2.1.2.2', and I get the following error:
"Could not install package 'LightGBM 2.1.2.2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."
I also encountered the same problem. Can you give me a temporary solution before this bug is fixed? @TomFinley
identical problem with .NET Framework 4.7.1
Is there a way to solve? @codemzs
@sharpwood Looking at this.
what锛烮 don't seem to find a solution. @codemzs
I meant I鈥檓 investigating the issue.
@sharpwood I have opened https://github.com/Microsoft/LightGBM/issues/1566 to track this.
For anyone looking for a work around until https://github.com/Microsoft/LightGBM/issues/1566 gets fixed, see https://stackoverflow.com/a/51728825/3680432.
Looks like this issue can be closed.