3F / DllExport

.NET DllExport with .NET Core support (aka 3F/DllExport aka DllExport.bat)
MIT License
940 stars 131 forks source link

DllExport & UnmanagedExports #122

Closed wthks closed 4 years ago

wthks commented 4 years ago

Hello.

I m using the UnmanagedExports Nuget package and it works for me in framework 4.7 but if I upgrade my framework version to 4.8 I m getting a error with version48 in the UnmanagedExports.

now I tryed to configure DllExport It builds without any error but the DLLExport not works. my .dll library is not exporting the functions with [DllExport]

this is not a issue with my code because with UnmanagedExports it works.

regards.

3F commented 4 years ago

Very informative issue. Did you try to read something before reporting?

I personally don't see problems for 4.8

wthks commented 4 years ago

I do not know what I do wrong. but [DllExport] seems to do nothing for me with the DllExport package. But for the UnmanagedExports [DllExport] works for me. With not works means that there is no build error it just wont export functions.

So If I use the UnmanagedExports package and upgrade my framework from 4.7 to 4.8 I m getting a compiler error:

Severity Code Description Project file line suppression state Error Unexpected error with the DllExportAppDomainIsolatedTask task. System.ArgumentException: The requested value "Version48" could not be found.

If there is a fix for this issue I can just use the UnmanagedExports package.

wthks commented 4 years ago

okay.. I found the issue It creates 2 different files.. not working file: x64\Debug\ working file: x64\Debug\x64\

why not just insert that directly in x64\Debug\?

3F commented 4 years ago

@HeroinGyrl

I do not know what I do wrong.

This is what I'm talking about. Please provide at least something. I don't even know what version and what are you doing at all. Did you understand me?

Please follow this minimal info.

Therefore, Can you send here such as diag log ? .csproj ? or more about your environment? again, just please something.

Moreover, "VersionXX" could not be found usually points to this: #29 ( -> https://github.com/3F/DllExport/issues/95#issuecomment-475863295)

Thanks!

wthks commented 4 years ago

Issue found here It builds 2 different files.

3F commented 4 years ago

@HeroinGyrl

I'm not sure what are you trying. But x64/x86 folders will be used when configuring both archs. Just select what you need if you only need x64

what does the folder After and Before means?

Just disable option Keep intermediate Files (IL Code, Resources, ...) because this is not what are you looking for (brackets)

Also, I don't understand how does it related to "VersionXX" could not be found problem.

Thus, if you still have this, please reopen this issue for details as I said above. Thanks!

wthks commented 4 years ago

The build error with VersionXX could not be found is in the UnmanagedExports package. by upgrading from 4.7 to 4.8 Framework.

the issue that [DllExport] not worked was that the file was in another folder. It was a problem with my configuration I made there something wrong. but now everything works.

regarding.

3F commented 4 years ago

I see. Thanks for the reply!

Pratikkulkarni-93 commented 2 years ago

HI @HeroinGyrl

Am getting the same issue, could you guide me how to resolve this.

thanks

wthks commented 2 years ago

hey @Pratikkulkarni-93 it's a long time since I opened that issue. can you provide screenshot of your configurations.

Pratikkulkarni-93 commented 2 years ago

Hi HeroinGyrl ,

thanks for your rply

with Dllexport i could create the dll but its not working

could you tell me which configuration needs to set

Thanks and Regards Pratik P. Kulkarni

On Tue, Sep 7, 2021 at 8:41 PM HeroinGyrl @.***> wrote:

hey @Pratikkulkarni-93 https://github.com/Pratikkulkarni-93 it's a long time since I opened that issue. can you provide screenshot of your configurations.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/3F/DllExport/issues/122#issuecomment-914392995, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVQPRD54KG2JC3HKIBAFJOLUAYTQ3ANCNFSM4JFQACGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.