How to pack all your DLLs into single EXE file in Visual Studio

tech kamar
Dec 21, 2023

Its a headache of DLLs while developing for windows EXE apps. One would get a ton of DLLs along with the EXE application without which the EXE file wont just start.

So what is the solution to this problem.

Simple!! use the NuGet package Fody.Costura.

To Install this follow the steps in Visual Studio

  1. Right Click on Solution of the Project

2. Click on Manage NuGet packages

3. Then in the NuGet bar. Click on Browse and Search for Fody.Costura

4. Install the Package and then rebulid your application.

5. Now goto the build folder and you will see only one EXE file.

Hope this helped. Thanks for reading

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response