Uzi-Granot / PdfFileWriter

Pdf File Writer CSharp Library for VS 2022 .NET 6.0
https://www.codeproject.com/Articles/570682/PDF-File-Writer-Csharp-Class-Library-Version
71 stars 29 forks source link

Severity Code Description Project File Line Suppression State Error NU1201 Project Img2PDFLib is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Project Img2PDFLib supports: net6.0-windows7.0 (.NETCoreApp,Version=v6.0) Img2PDFTest Z:\Users\RChibnik\_Projects\Img2PDF\Img2PDFTest\Img2PDFTest.csproj 1 #3

Open rchibnik opened 2 years ago

rchibnik commented 2 years ago

Really looking forward to using this package - I'm getting this error when trying to build a .NET Core 6.0 (6.03) DLL and getting this error:

Severity Code Description Project File Line Suppression State Error NU1201
Project is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Project supports: net6.0-windows7.0 (.NETCoreApp,Version=v6.0)

If I target Windows in my VS2022, the only Target OS version available is 7.0

Any suggestions?

GitHubRulesOK commented 1 year ago

Sadly the Repo Owner passed away March 24th 2022 see https://www.codeproject.com/Messages/5874879/Re-Is-this-about-our-Uzi

So please forgive his not answering, If you or anyone else finds the answer please post below for others benefit.

Channwar commented 1 year ago

Really looking forward to using this package - I'm getting this error when trying to build a .NET Core 6.0 (6.03) DLL and getting this error:

Severity Code Description Project File Line Suppression State Error NU1201 Project is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Project supports: net6.0-windows7.0 (.NETCoreApp,Version=v6.0)

If I target Windows in my VS2022, the only Target OS version available is 7.0

Any suggestions?

Hello !

I just had the same error, actually your project's "Img2PDFLib" version is net6.0 and has to be net6.0-windows. I guess they are slightly different and that he used the window version for a good reason. Anyway, juste change your .NET version and it will install smoothly !

see ya