PockyBum522 / library-pdf-printer

A simple way to print PDFs on Windows without needing to have Adobe Reader installed. .NET 6 library. Will always be free.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Path problem

torgem opened this issue · comments

When an application is published as a Single File Executable, the following code will return an empty string:
return Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName);

The app then is looking for C:\lib... for the GS-DLL. Root + Path.
Suggestion: Path.GetDirectoryName(Environment.ProcessPath)

Please try 1.7.17 or later on nuget. It should be fixed. Let me know results so I can close this if it's working now.