Skip to content

Installing ML.NET on target framework .NET Framework=4.7.2 (Latest) Fails via Nuget #290

Closed

Description

@airduster

System information

  • OS Windows 7:
  • .NET 4.7.2 (Latest):
  • Visual Studio 2015 (x64):

Issue

  • What did you do:

Attempting to install Microsoft.ML package via Nuget on project that has .NET targetframework = 4.7.2 (latest)

  • What happened?: '

package install failed with the following message

Could not install package 'Microsoft.ML 0.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', 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.

  • What did you expect?:
    The documentation indicates this can be installed on netcore or .NET Framework. Am I doing something wrong? To Verify I manually downloaded the Microsoft.ML package from nuget and in "Microsoft.ML.nuspec" under target frameworks only netcore 2.0 is listed for v0.1.0 of ML.NET

Activity

  1. danmoseley commented on Jun 4, 2018

    @danmoseley

    I would expect this to work, indeed I tried it back in original release. @eerhardt any thoughts?

  2. eerhardt commented on Jun 4, 2018

    @eerhardt
    Member

    The issue is Visual Studio 2015.

    Unfortunately v0.1.0 of Microsoft.ML didn’t support VS 2015 (because Microsoft.ML v0.1 didn't support packages.config). We’ve fixed it with the latest daily builds, and the fix will be in the next version v0.2, which will be coming shortly (hopefully in the next week).

    You can try the latest daily builds by adding the following NuGet feed to your NuGet Package Manager settings:

                https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
    

    Also, please note that Microsoft.ML targets netstandard2.0. In order to work with a netstandard2.0 package in VS 2015, you will need to install the following:

    1. The latest NuGet VSIX for VS 2015 (v3.6.0 as of this writing) from https://www.nuget.org/downloads
    2. The .NET Standard Build Support extension from https://aka.ms/netstandard-build-support-netfx
  3. Ivanidzo4ka commented on Oct 18, 2018

    @Ivanidzo4ka
    Contributor

    DRI RESPONSE:
    I'm intent to close this thread in few days, if no one reply to it.

  4. eerhardt commented on Oct 18, 2018

    @eerhardt
    Member

    This has been fixed for a while. We can close it now. Please open a new issue (with repro steps and environment/version information) if anyone is having issues installing the Microsoft.ML NuGet package.

  5. ghost locked as resolved and limited conversation to collaborators on Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions