PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Dependencies of PDFsharp-MigraDoc-GDI 6.1.1
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4639
Page 1 of 1

Author:  miikaol [ Fri Aug 09, 2024 9:04 am ]
Post subject:  Dependencies of PDFsharp-MigraDoc-GDI 6.1.1

Hi,

I'm trying to update PDFsharp-MigraDoc-gdi from version 1.50.5147 to PDFsharp-MigraDoc-GDI 6.1.1 in a .NET 4.8 environment. The NuGet upgrade works, but the process breaks my bindingRedirect, as seen in the web.config diff.

Could you relax the dependencies?

Attachments:
File comment: Screenshop of web.config upgrade
pdfsharp_upgrade.png
pdfsharp_upgrade.png [ 105.5 KiB | Viewed 5471 times ]

Author:  TH-Soft [ Fri Aug 09, 2024 9:12 am ]
Post subject:  Re: Dependencies of PDFsharp-MigraDoc-GDI 6.1.1

Hi!
miikaol wrote:
Could you relax the dependencies?
I'm afraid I don't understand.
How could we do that?

You can download the source and remove .NET 6 and .NET 8 from the target framework list and/or replace the versions in the package dependencies.

And if you only have to change the package dependencies, please let us know what changes you made.

Author:  miikaol [ Fri Aug 09, 2024 9:23 am ]
Post subject:  Re: Dependencies of PDFsharp-MigraDoc-GDI 6.1.1

TH-Soft wrote:
Hi!
miikaol wrote:
Could you relax the dependencies?
I'm afraid I don't understand.
How could we do that?

You can download the source and remove .NET 6 and .NET 8 from the target framework list and/or replace the versions in the package dependencies.

And if you only have to change the package dependencies, please let us know what changes you made.


As you see I already have all needed dependencies installed. Upgrade try to downgrade redirects and break the project. PDFSharp should somehow link to new libraries.

Author:  TH-Soft [ Fri Aug 09, 2024 9:37 am ]
Post subject:  Re: Dependencies of PDFsharp-MigraDoc-GDI 6.1.1

miikaol wrote:
PDFSharp should somehow link to new libraries.
I don't know what to do about it. Where would we make what changes?

Does it work when you keep the old (higher) values in web.config?

Author:  miikaol [ Fri Aug 09, 2024 10:40 am ]
Post subject:  Re: Dependencies of PDFsharp-MigraDoc-GDI 6.1.1

TH-Soft wrote:
miikaol wrote:
PDFSharp should somehow link to new libraries.
I don't know what to do about it. Where would we make what changes?

Does it work when you keep the old (higher) values in web.config?


Found the root problem:

PDFSharp try to replace my project libraries with bundled ones! So could you change PDFSharp nuget to use reference libraries not local ones?

Attachments:
File comment: upgraded libs
pdfsharp_libs.png
pdfsharp_libs.png [ 197.13 KiB | Viewed 5449 times ]

Author:  TH-Soft [ Fri Aug 09, 2024 12:04 pm ]
Post subject:  Re: Dependencies of PDFsharp-MigraDoc-GDI 6.1.1

PDFsharp 6.1.1 accidentally includes some Microsoft assemblies in the NET472 folder of the NuGet package.
This was fixed for internal builds and PDFsharp 6.2.0 Preview 1 (coming soon) no longer includes Microsoft assemblies in the NuGet package.

If that's the cause of your problems, then they should be resolved with the next release.

Author:  miikaol [ Fri Aug 09, 2024 12:26 pm ]
Post subject:  Re: Dependencies of PDFsharp-MigraDoc-GDI 6.1.1

TH-Soft wrote:
PDFsharp 6.1.1 accidentally includes some Microsoft assemblies in the NET472 folder of the NuGet package.
This was fixed for internal builds and PDFsharp 6.2.0 Preview 1 (coming soon) no longer includes Microsoft assemblies in the NuGet package.

If that's the cause of your problems, then they should be resolved with the next release.


Ok, thanks for the info!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/