'Singlefile Windows Form Application executable with modern browser embedded possible?

I'm completely new to C# and Visual Studio 2019 but I managed to create a Windows Form App with chromium embedded in it via CefSharp. All I need now is to pack it into a single .exe file. Right now it has a bunch of folders near generated .exe file and it doesn't run without most of them. I looked everywhere but I can't find a tick or an option to compile into single file

Right now I'm stuck with this error I'm trying to do this:
dotnet publish -r win-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --output "D:/temp/"

but get this error multiple times (everywhere where I use cefsharp)
error CS0246: The type or namespace name 'CefSharp' could not be found (are you missing a using directive or an assembly reference?)

It launches and builds fine with a "Run" button but it produces multiple files instead of one.

I'm not entirely sure if that's even possible so I'll ask an another question I guess - how does one go about creating a single file exe with embedded chromium? (Or at least EDGE, WebView defaults to IE7 or at best IE10 which is also not ideal)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source