C#C
C#3y ago
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
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?
Was this page helpful?