Fody / Costura

Embed references as resources
MIT License
2.4k stars 274 forks source link

using costura to embed SevenZipSharp.dll 7z.dll(x86) 7z.dll(x64) find trouble #482

Closed ice0030 closed 4 years ago

ice0030 commented 4 years ago

ONLY active OSS contributors OR people who buy me a coffee can ask questions here. If you don't do either of these things - DO NOT FILE HERE OR I WILL SIMPLY REMOVE YOUR ACCOUNT :)

Give as much details as humanly possible if you want any sort of answer!

Enter Question Below (don't delete this line)

i really did want to buy the coffee,but i am chinese guy.....,very sorry,i did really want help using costura to embed SevenZipSharp.dll 7z.dll(x86) 7z.dll(x64) find trouble

I use costura to embed sevenzipsharp find 2 problems i use the following config

7z SQLite.Interop 7z SQLite.Interop

it did work , SevenZipSharp.dll 7z.dll(x86) 7z.dll(x64) did embeded in but SevenZipSharp call interface need to set 7z dll path like SevenZip.SevenZipExtractor.SetLibraryPath(@"./7z.dll");

problem1:SevenZipSharp.dll must physically exist in the same dir with exe,if not,exception like this: :“SevenZip.SevenZipLibraryManager”的类型初始值设定项引发异常

problem2:even if SevenZipSharp.dll physically exist in the same dir with exe, exception like this: Can not load 7-zip library or internal COM error! Message: can not change the library path because the file "./7z.dll" does not exist.(how do i write the path string)

although costura did embed in all the dll,but not work,why?

ice0030 commented 4 years ago
GeertvanHorrik commented 4 years ago

I have no idea why it doesn't work. As you mention, it's correctly embedded, and that's about where Costura stops and your own queste starts.

As explained by the issue templates, you either need to be a contributor to other OSS libs (but didn't see contribution activity in your GH profile) OR support the Fody open collective. I think both are not the case so I will close this ticket as explained by the template.

ice0030 commented 4 years ago

i made a really simple project,just install fody.costura and sevenzipsharp,it did embeded in

but if sevenzipsharp not exist with exe,i would throw exception

please help me

------------------ 原始邮件 ------------------ 发件人: "Geert van Horrik"<notifications@github.com>; 发送时间: 2019年12月8日(星期天) 晚上8:53 收件人: "Fody/Costura"<Costura@noreply.github.com>; 抄送: "asura"<20089029@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [Fody/Costura] using costura to embed SevenZipSharp.dll 7z.dll(x86) 7z.dll(x64) find trouble (#482)

Closed #482.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.