question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing package Microsoft.ML on target framework .NET Framework 4.6.2 fails.

See original GitHub issue

System information

  • OS version/distro: Windows 10
  • .NET Version (eg., dotnet --info): .NET 4.6.2

Issue

  • What did you do? Tried to install Nuget Package Microsoft.ML on a .NET 4.6.2 project in Visual Studio 2013 (Version 12.0.40629.00 Update 5)

  • What happened? Nuget Package installation failed with error.

  • What did you expect? Nuget Package should have been installed successfully as netstandard 2.0 supports .NET Framework 4.6.2.

Source code / logs

Installing 'Microsoft.ML 0.4.0'.
Successfully installed 'Microsoft.ML 0.4.0'.
Adding 'Microsoft.ML 0.4.0' to XXX.
Uninstalling 'Microsoft.ML 0.4.0'.
Successfully uninstalled 'Microsoft.ML 0.4.0'.
Install failed. Rolling back...
Could not install package 'Microsoft.ML 0.4.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
eerhardtcommented, Mar 11, 2019

Microsoft.ML currently supports ‘x64’ and ‘x86’ processor architectures. Please ensure your application is targeting ‘x64’ or ‘x86’.

As the error indicates, you can’t use Any CPU with Microsoft.ML. Instead you need to change your project’s platform to either x64 or x86. See https://docs.microsoft.com/en-us/visualstudio/ide/how-to-configure-projects-to-target-platforms for instructions on how to change it.

1reaction
yusufmsalhcommented, Mar 9, 2019

I have resolved by switching back to Dot Net Framework V4.6 , I wonder if you may find another solution for the duplicate reference issue @eerhardt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot .NET Framework targeting errors
To resolve the error, make sure that your application targets a .NET version that's compatible with the version that's targeted by the ...
Read more >
Cannot load project with target .Net Framework 4.6.2
1. Open VS installer (search installer in windows start) · 2. Click Modify of your installed VS · 3. Switch to 'Individual components'...
Read more >
nuget - Could not install package '--'. You are trying to ...
In my case, I'm installing EmguCv 4.2 package. I get this same error when trying to build with 4.5.1 .NET target framework. After...
Read more >
Visual Studio doesn't recognize .NET Framework 4.6.2 is ...
I've installed .NET Framework 4.6.2 via the web installer, and everything looked good. However, after I restarted and opened up Visual ...
Read more >
Problems installing microsoft .net framework 4.6 full package
If all else fails, and it shouldn't, but if all else fails you can do this. 1. Right click on "Microsoft .Net Framework...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found