logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Guest  
#1 Posted : Wednesday, November 8, 2017 12:39:27 PM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
I made some tests using netcore 2 console app.
I created a console application, referenced the Patagames dll and it worked.
Not satisfied... I added a project Class Library (netstandard 2) and referenced the Patagames dll in that new Class Library.
I removed the reference in the Console Application so... only the Class Library has the reference to the Patagames dll.

It doesn't work anymore. It cannot find the Patagames.dll

Do you have some hint?
I double checked the dll and it is there.

(using standard console application and class library 4.6.1 all is ok)

Thanks in advance.

Edited by user Wednesday, November 8, 2017 12:52:41 PM(UTC)  | Reason: typos

Paul Rayman  
#2 Posted : Thursday, November 9, 2017 3:46:09 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Could you please provide visual studio solution and project files.
I will check the projects settings.
Guest  
#3 Posted : Thursday, November 9, 2017 7:31:06 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
Hi,
for sure.

Please, can you provide email?

Thanks
Paul Rayman  
#4 Posted : Thursday, November 9, 2017 12:53:49 PM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Paul Rayman  
#5 Posted : Friday, November 10, 2017 2:34:52 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Please make sure of the following
Quote:
When building your project, the pdfium.dll library(s) must be placed next to your application, either in the root or the x86 or x64 sub directory. The easiest way to accomplish this is by changing the properties of that file, changing the Copy to Output Directory setting to Copy always.

UserPostedImage
setup

Edited by user Friday, November 10, 2017 2:35:28 AM(UTC)  | Reason: Not specified

Guest  
#6 Posted : Saturday, November 11, 2017 1:37:15 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
I send you VS solution.
please check it out.

The "difference" I see in youu sshot is the 2nd project I added to the solution.
Try adding a class project and reference the project.

Thanks
Paul Rayman  
#7 Posted : Tuesday, November 14, 2017 1:22:16 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Looks like you have same issue as described here:
https://forum.patagames....-to-load-DLL--pdfium-dll

I mean in .NET Core console app default working directory is the source directory, not the bin directory

Please look at this video

Edited by user Tuesday, November 14, 2017 3:52:11 AM(UTC)  | Reason: Not specified

Guest  
#8 Posted : Thursday, November 16, 2017 11:51:26 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
Directory.SetCurrentDirectory(@"bin\debug\netcoreapp2.0");

did the trick!

Thanks
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.