Could not load file or assembly 'PdfSharp, Version=1.51.5185.0,The system cannot find the file specified

Im makng custom activity which needs PDFSharp , i have added the dependecies for the PDFSharp but dont know what to do for assebly refrecnce

this problem is coming with windows compatiblity of the project but not with windows-legacy

here is the metadata code of nuget pakage explorer

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
  <metadata>
    <id>TiffToPdf.Activities</id>
    <version>1.0.4</version>
    <title>TiffToPdf.Activities</title>
    <authors>Sagar Raval</authors>
    <owners>Sagar Raval / Jaydeep Lunagaria</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <iconUrl>https://www.iconpacks.net/icons/2/free-convert-icon-3209-thumb.png</iconUrl>
    <description>This pakage conatins ConvrtTiffToPdf Actvity which helps convert Tiff files to pdf 

- It supports single and multiple pages</description>
    <dependencies>
      <group targetFramework=".NETFramework4.6.1">
        <dependency id="PDFsharp" version="1.51.5185-beta" />
      </group>
      <group targetFramework="net6.0-windows7.0">
        <dependency id="PDFsharp" version="1.51.5185-beta" />
      </group>
    </dependencies>
  </metadata>
</package>

Hello @indiedev91

  1. Check PDFSharp compatibility with .NET 6.0 and targeted Windows versions.
  2. Verify correct assembly reference to PDFSharp in your project.
  3. Confirm accurate Windows version specification in metadata.
  4. Check UiPath compatibility and error messages.
  5. Seek support from PDFSharp’s community or UiPath if issues persist.

Thanks & Cheers!!!

How to do that, I don’t know what exactly are assembly references in the first place ?