PDFtoPrinter icon indicating copy to clipboard operation
PDFtoPrinter copied to clipboard

PdfToPrint.exe is missing

Open MarvinKlein1508 opened this issue 3 years ago • 4 comments

Hey there! First of, thanks for this useful project!

I had an error today which I finally figured out. I have your nuget package installed within a .net5.0-windows library. This library is referenced as project reference in another project. This result in an error when I try to print any pdf because PdfToPrint.exe is not included in the project which references my own library which references your nuget package. I still have the file PdfToPrint.dll but no exe file.

What I need to do is to install the package in my other project as well in order to get it working.

Is there any easy solution to automatically add the nuget reference when it's inside another library which is referenced by another project?

MarvinKlein1508 avatar May 11 '21 11:05 MarvinKlein1508

Hi @MarvinKlein1508!

Thanks for your request.

Could you please confirm that the following is correct?

The project structure is:

Solution:
  Project A
    .net5.0-windows:
    PdfToPrinter v1.4.1 (Nuget feed)

  Project B:
    .net5.0-windows
    Project A (a local project with PdfToPrinter dependency).

svishnevsky avatar May 11 '21 15:05 svishnevsky

Hi @svishnevsky

Solution:
    Project A
        .net5.0-windows
        PdfToPrinter v1.4.1 (Nuget)
    
    Project B
        .net5.0-windows (ASP.NET Core Blazor Server)
        Dependency on Project A (same solution)

    Project C
        .net5.0-windows
        Dependency on Project A (same solution)
        PdfToPrinter v1.4.1 (Nuget)
    

- Project B calls a method from Project A which uses the PdfToPrint library => PdfToPrint.exe could not be found
- Project C calls the same function from Project A but this time it works fine because it also has the nuget package

MarvinKlein1508 avatar May 11 '21 18:05 MarvinKlein1508

Hi @MarvinKlein1508

I've reproduced your issue but unfortunately all attempts to fix it failed. The easiest way is to install "PDFtoPrinted" nuget package to the "Project B". I'm still trying to resolve the issue and will notify you if I'll have a better solution.

svishnevsky avatar May 13 '21 12:05 svishnevsky

the file is not pdftoprint.exe the file is PDFtoPrinter.exe will be builded after build solution...

Vasanthvivi avatar Sep 06 '21 17:09 Vasanthvivi