DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Will you add net 6 support?

Open ASalihov opened this issue 3 years ago • 5 comments

As far as I understand this lib currently doesn't support net 6. Have you plans to add such support?

ASalihov avatar Jul 16 '22 08:07 ASalihov

Hi, Yes, v2.3 will support .NET5. That version will also work on .NET6. Thank you.

XceedBoucherS avatar Aug 10 '22 18:08 XceedBoucherS

Hi, Yes, v2.3 will support .NET5. That version will also work on .NET6. Thank you.

When will I see on nuget

ByZhouhang avatar Aug 11 '22 06:08 ByZhouhang

Hi, I would say beginning of September 2022. So in a few weeks from now.

XceedBoucherS avatar Aug 11 '22 15:08 XceedBoucherS

Hi, @XceedBoucherS, I use .NET6 and for inserting pictures I get System.Drawing.Common is not supported on this platform. I see here it still says .NET5 (https://www.nuget.org/packages/DocX/2.4.0#dependencies-body-tab) and it seems System.Drawing.Common is not supported in .NET6 (https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only) Could you please clarify that does it support .NET6 now or not?

amirdooghi avatar May 18 '23 17:05 amirdooghi

Hi, Are you on Windows ? Currently, .NET5/6/7 is supported on Windows (even if it says .NET5). Moving the product on other platforms following the Microsoft recommandations relative to System.Drawing.Common would result in a downgrade of functionalities in the product. We are investigating on doing it a good way.

For windows, I created a new .NET6 project, downloaded DocX v2.4 from NuGet and run the following sample:

using Xceed.Words.NET;

var doc = DocX.Create( "test.docx" );

var image = doc.AddImage( "myPicture.jpg" ); var picture = image.CreatePicture( 112.5f, 112.5f ); doc.InsertParagraph( "This is my text" ).AppendPicture( picture );

doc.Save();

Everything worked without any problems.

Thank you

XceedBoucherS avatar May 19 '23 13:05 XceedBoucherS