lpha3ch0
lpha3ch0
CC#
Created by lpha3ch0 on 2/3/2023 in #help
❔ 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?
15 replies