Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I wrote in console:
Install-Package .NETStandard.Library.NETFramework


but it says: Package not installed

What I have tried:

I tried to wtite how I said above
Posted
Updated 5-Mar-23 23:47pm

1 solution

There is no such package. You cannot install a package that does not exist.
 
Share this answer
 
Comments
Member 14594285 6-Mar-23 5:50am    
Are you sure? In an other software I have NETStandard.Library.NETFramework package
Richard Deeming 6-Mar-23 5:55am    
Ah, OK: you're using a deprecated package, which was only ever available in preview:
NuGet Gallery | NETStandard.Library.NETFramework 2.0.0-preview2-25405-01[^]

You don't need that reference unless you're on an ancient version of Visual Studio. All recent versions will allow you to reference a .NET Standard 2.0 package from a project that targets .NET Framework 4.6.1 or later.
Member 14594285 6-Mar-23 6:01am    
a ok thanks...so if I installed NetStardard library is enough?
Richard Deeming 6-Mar-23 6:13am    
If you're using a reasonably up-to-date version of Visual Studio, you should just be able to reference the actual library you're trying to use. There's no need to reference the NETStandard.Library package at all.
Member 14594285 6-Mar-23 6:14am    
I use visual studio 2022

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900