diff --git a/samples/MvcSample/Program.cs b/samples/MvcSample/Program.cs index 40138e3b8e..25cb146332 100644 --- a/samples/MvcSample/Program.cs +++ b/samples/MvcSample/Program.cs @@ -1,6 +1,7 @@ -#if NET45 -using System; +using System; +#if NET45 using Microsoft.Owin.Hosting; +#endif namespace MvcSample { @@ -10,13 +11,16 @@ namespace MvcSample public static void Main() { +#if NET45 using (WebApp.Start(new StartOptions(baseUrl))) { Console.WriteLine("Listening at {0}", baseUrl); Console.WriteLine("Press any key to exit"); Console.ReadKey(); } +#else + Console.WriteLine("Hello World"); +#endif } } -} -#endif \ No newline at end of file +} \ No newline at end of file