C# : how to build exe with ASP.NET Core 7.0 included

41 Views Asked by At

I have developed a C# console application that uses ASP.NET Core, and if I try to run it on a machine without that framework installed, I get a message that demands the corresponding aspnetcore-runtime.7.0 to be installed.

Since I would like to not require the user to install any runtimes, it would be nice if I could build a single EXE that internally brings all required runtimes, even if that increases the size of the EXE.

How can this be achieved?

0

There are 0 best solutions below