1. Richard Torcasio
  2. SnapDevelop
  3. Wednesday, 6 May 2020 18:30 PM UTC

I just started a new project in SnapDevelop. I also tried to install a nuget package and got the error:

 

Package itext7 7.0.3 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package itext7 7.0.3 supports: net40 (.NETFramework,Version=v4.0)

 

I don't see where to change the .net version of my project, like in Visual Studio.

 

Thanks in advance and hope everyone is health and save!

Rich

Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 6 May 2020 19:07 PM UTC
  2. SnapDevelop
  3. # Permalink

I don't recommend you use anything that is not compatible with .NET Core framework.  Microsoft is going to force everybody to switch over to .NET Core in the next version: https://devblogs.microsoft.com/dotnet/introducing-net-5/  So basically, if you don't use .NET Core your brand new project may be obsolete even before you finish it.

The other thing is I don't recommend using iText unless you purchased a commercial license.  Their open source version is AGPL, which basically means you have to open source your own project.

Here are some popular commercial PDF products that support .NET Core:

https://www.syncfusion.com/pdf-framework/net-core/pdf-library

https://products.aspose.com/pdf

If you are willing to use an older version of iText, there is a fork of it that supports .NET Core and is licensed under LGPL if you don't want to spend money:

https://github.com/VahidN/iTextSharp.LGPLv2.Core

If you want another free option, there is also a port of PDFBox that supports .NET Core and is licensed under Apache 2.0:

https://www.nuget.org/packages/PdfPig/

Comment
There are no comments made yet.
Richard Torcasio Accepted Answer Pending Moderation
  1. Wednesday, 6 May 2020 20:16 PM UTC
  2. SnapDevelop
  3. # 1

Thanks for the quick responses!

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 6 May 2020 21:38 PM UTC
Hi Richard, Please post this as a separate question so it can get adequate visibility and you get a good response. Thanks.
  1. Helpful
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 6 May 2020 19:09 PM UTC
  2. SnapDevelop
  3. # 2

Hi Richard,

 

You can change the Target Framework by right-clicking the Project, in SnapDevelop, and selecting "Properties". You will see an option marked as "Target Framework". I believe this is what you are looking for.

 

 

Regards,

Comment
  1. Richard Torcasio
  2. Wednesday, 6 May 2020 20:17 PM UTC
Hi Govinda,



It will but not up to version 4.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.