Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
196 views
in Technique[技术] by (71.8m points)

sqlite - How to make a Single exe file from c# assembly and dll?

I used ILmerge.

And it made a merged_exe file succefully. (with /zeroPekind option)

But, it does not work.

My work is very simple. I read a table from a SQLite file and make a text file. That is it.

I have tried to use "ResolveEventHandler" at the Mains(). It was not work too.

What do I have to do ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I used Costura.Fody. It works great.

Install-Package Costura.Fody

Here is steps to add using VS.

  1. Go to Tool -> Nuget Package Manage -> Package Manager Console
  2. Make sure your project is selected as Default project in console
  3. Type command "Install-Package Costura.Fody" then hit enter.
  4. Compile and run your app
  5. Your exe will be ready
  6. However you can customize it with FodyWeavers.xml

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...