[Solved] Error: the package does not contain any assembly references or content files that are compatible with that framework

RichardSa
 
on Dec 08, 2022 05:36 AM
453 Views

Hello forum

I wanted to update the iTextSharp in my website but I got an error. However I want to ask if updating from an older to newer version could affect C# sharp coding seeing that my codes were coded on an older version of iTextSharp version?

This is the error i got

Severity Code Description Project File Line Suppression State

Error Could not install package 'itext7 7.2.4'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.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. 0

Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on Dec 08, 2022 05:38 AM

Hi RichardSa,

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 install the version of iText that supports Framework v4.5.2.