S
S
SMARTi2016-02-19 20:16:23
.NET
SMARTi, 2016-02-19 20:16:23

How to build a .NET application written in C# in Visual Studio into one exe file?

What are the ways to assemble into one self-sufficient (with the exception of the .NET Framework of course) exe file? And is it possible at all? In which direction to dig?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Melz, 2016-02-19
@SMARTi

If I understand correctly, then
1. ILMerge
2. Fody/Costura . If anyone has tried it please let me know.
3. Self-writing with ResourceManager.
But these must be .net assemblies, everything will not work out in a row.
The rest (pictures, etc.) can be embedded by RMB - Build action.

G
GavriKos, 2016-02-19
@GavriKos

Build->Build solution. In the Debug / Release folder (depending on the assembly) there will be an exe file.
Or do you have some libraries and external dependencies?

A
Ai Lab, 2016-02-20
@vpuhoff

Spoon Studio

A
Artem, 2016-02-21
@devspec

I use .NET Reactor to link all libraries to exe and get one file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question