"The library 'hostpolicy.dll' required" if run from deploy folder, but emitEntryPoint is true
Once you publish the application and have a .exe file, you don't need to use dotnet
anymore. The application is compiled!
Just run application.exe by double-clicking it, or launching it from the console.