© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
14 replies
lpha3ch0

❔ Problems with using Dotnet 6 on Windows to publish to an exe format

Dotnet/C# newb here. Previously I've only done a small amount of development using the .Net Framework on Windows in Visual Studio Community where switching between publishing an exe or dll is straightforward and easy. Now I'm trying to get familiar with publishing C#/Dotnet 6 cross platform apps in Visual Studio. I've googled this and followed guides I've found and still can't get VS to output an exe. How do I do this, and does it always have to result in a huge file size, like in standalone option, without having a separate exe and dll? When I publish to Windows, I'd prefer an exe without having to bundle a dll with it, and without it being 34MB. Am I stuck with creating projects targeting .Net Framework to get what I need?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Publish to single working .exe
C#CC# / help
2y ago
❔ dotnet publish docker fails
C#CC# / help
3y ago
❔ DotNet 6 (Windows service), how to fix error EventLog ?
C#CC# / help
4y ago
Issues using "dotnet ef" tool with dotnet 6.0 in ubuntu 22
C#CC# / help
3y ago