Print hello world for k10 project.
This commit is contained in:
parent
4c17c864f9
commit
ebbb481fea
|
|
@ -1,6 +1,7 @@
|
||||||
#if NET45
|
using System;
|
||||||
using System;
|
#if NET45
|
||||||
using Microsoft.Owin.Hosting;
|
using Microsoft.Owin.Hosting;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace MvcSample
|
namespace MvcSample
|
||||||
{
|
{
|
||||||
|
|
@ -10,13 +11,16 @@ namespace MvcSample
|
||||||
|
|
||||||
public static void Main()
|
public static void Main()
|
||||||
{
|
{
|
||||||
|
#if NET45
|
||||||
using (WebApp.Start<Startup>(new StartOptions(baseUrl)))
|
using (WebApp.Start<Startup>(new StartOptions(baseUrl)))
|
||||||
{
|
{
|
||||||
Console.WriteLine("Listening at {0}", baseUrl);
|
Console.WriteLine("Listening at {0}", baseUrl);
|
||||||
Console.WriteLine("Press any key to exit");
|
Console.WriteLine("Press any key to exit");
|
||||||
Console.ReadKey();
|
Console.ReadKey();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
Console.WriteLine("Hello World");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
Loading…
Reference in New Issue