#MLNet – Adding NuGet Packages in Preview mode from MyGet, ie: Microsoft.ML-0.6.0 Version


A few days ago I wrote about the new Machine Learning.Net version 0,5. Yesterday when .NetConf started, the release was made official with the following post from Cesar de la Torre

Announcing ML.NET 0.5

Now, a detail that is a little Deep in the documentation is the way to access packages in preview mode that are used in the following repositories Machine Learning  and Machine Learning Samples

Well, when we open and try to compile one of the projects we can see that in the references of this are being used Packages in preview state

01 mlnet 0.60 preview solution explorer

The problem we have is that, when built, these packages are not available in nuget.org

Unable to find package Microsoft.ML with version (>= 0.6.0-preview-26912-3)

  – Found 5 version(s) in nuget.org [ Nearest version: 0.5.0 ]


02 mlnet 060 preview error on build

The solution for this is to add the necessary packages in manual mode from MyGet.

PM> Install-Package Microsoft.ML -Version 0.6.0-preview-26913-1 -Source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json

or set up a new NuGet source in Visual Studio, with the following information

03 MyGet ML.Net Sources NuGet

In this way, when a NuGet Restore action is performed for example, when we build a project, and we will have all the necessary packages available to work.

04 mlnet 0.60 preview solution explorer build OK

Happy Coding!

Greetings @ Toronto

El Bruno


My Posts


Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: