Mark this ad:
ASP.NET Core RC2 Announcement
As you can see, your ASP.NET Core application with RC2 becomes a console application.
However, your entry point is your EXE, which exits from compiling your Core console application. ASP.NET
Thus, instead of relying on DNX to get the main method from your Startup.cs, you set up your toolchain in Program.cs, and then just create an EXE that will be used for writing in the application.
public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel() .UseStartup<Startup>() .Build(); host.Run(); } }
So your manifest will be something like this:
<EntryPoint> <ExeHost> <Program>YourApp.Exe</Program> </ExeHost> </EntryPoint>
Admir tuzović
source share