Installing package Microsoft.ML on target framework .NET Framework 4.6.2 fails.
See original GitHub issueSystem 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:
- Created 5 years ago
- Comments:18 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As the error indicates, you can’t use
Any CPU
with Microsoft.ML. Instead you need to change your project’s platform to eitherx64
orx86
. See https://docs.microsoft.com/en-us/visualstudio/ide/how-to-configure-projects-to-target-platforms for instructions on how to change it.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