Search code examples
c#winformscefsharp

How to release a winform program based on cefsharp by using VS2015 community


I write a simple browser by using cefsharp, it worked in my computer,but I want to release it, thus other people can use it on their own computer. I used the VS2015 community to release it, I setted up it on my computer,but when I clicked the .exe , it didn't work. Hope somebody could help me.

Besides this, I also want to make a .exe program, put all the .dll profiles into one .exe profile.

Here is the release folderthe release folder

the .exe profile depends on many .dll profiles, I want to put all the things into one .exe profile. But I don't know how to do it.


Solution

  • You ends with 3 different modules:

    1. Pure .NET assemblies
    2. Mixed-mode .NET assemblies
    3. Native modules

    You can naturally merge only pure .NET assemblies (1) with tools like ILMerge. But you can't do same for (2) and (3).

    The only way achieve similar result is package dependencies as resources and unpack them on start. But i'm strongly not recommend this way - it is always lead to problems and slow startup performance.

    Just make installer.