To simply it, I just add one line in the Web Application:
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
Console.WriteLine("Hello, world!");
}
What I want is to read "Hello, world!" on the output window in Visual Studio 2010, but failed, what's wrong?
I've tried: change verbosity by Tools > Options > Project and Solutions > Build and Run and change values of "MSBuild project build output verbosity" but without any effect.
Use Debug.WriteLine
instead of Console.WriteLine
if you want to see the result in the Debug window.
using System.Diagnostics;
void Application_Start(object sender, EventArgs e)
{
Debug.WriteLine("Hello, world!");
}