Could not install package ‘–‘. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.5’

Your package targets NETFramework,Version=v4.5.2. That means the assembly folder is lib\net452. You are trying to install the package to a higher framework (greater than 4.5) project. Create a project with framework 4.5.2 or rename the package’s lib folder from net452 to the version which you want to target like net45 or net46.

You can target multiple framework too from a single package.

Edit your csproj file like this:

<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>

Refer here: https://learn.microsoft.com/en-us/nuget/create-packages/supporting-multiple-target-frameworks

For a complete, up-to-date list of target framework names, refer to https://learn.microsoft.com/en-us/nuget/reference/target-frameworks#supported-frameworks

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)