© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
23 replies
Donut5162

❔ Publishing project

Hello, I am trying to publish a WPF project with NuGet dependencies. I am trying to publish to a single executable.

I can publish it in visual studio and get a lightweight exe but it requires a few other DLLs. I can use the command line to publish to a single file but it is very large; the
--self-contained
--self-contained
flag is necessary for this, but it seems to include the .NET runtume in the executable. I would like to avoid this to reduce size since i believe windows comes with the runtime already. Any ideas?
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

✅ No files when Publishing Avalonia Project
C#CC# / help
3y ago
❔ MySQL publishing question
C#CC# / help
4y ago
Publishing/Building project with dependencies based on target .NET version
C#CC# / help
2y ago
Publishing to microsoft store
C#CC# / help
13mo ago