Reputation: 188
In Console Application, the publish window is looks like this.
However, in Console App (.NET Framework), the publish is like this.
My project is in C# Console App (.NET Framework) and I want to publish as "Folder". How can I do that? Console Application doesn't support Framework 4.7.2 so I'm using Console App (.NET Framework).
Edited: I want to publish my project as a single exe but I can't do it using the Console App (.NET Framework) publish window. It generates .application, .config, .manifest files.
Upvotes: 2
Views: 2819
Reputation: 17185
That's not possible with .NET Framework. There are (external) tools, such as ILMerge that can do this trick, but with .NET framework out of itself, this feature is not available. Check this topic: How do I merge multiple .net assemblies into a single assembly?. Alternatively, you could change to .NET 5.0 to get that feature.
Upvotes: 1