Rider: Create single file command line program in C#

Veröffentlicht von

How to create a single .exe file for your console application.

I wanted to create a small console application. By default, a C# progam creates a .exe file and one or more .dll files. I wanted to have just a single .exe file. This is possible.

In Jetbrains Rider you have to select the “Publish” option from the projects’ context menu. Then we can edit the configurations.

Here, we now select the target runtime and “Produce single file”.

When we publish the app, a single .exe file is created. The .pdb file is just some debug info and can be deleted.

Kommentar hinterlassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert