Changes to get the sample running again

This commit is contained in:
Pranav K 2014-02-03 21:05:54 -08:00
parent 6c4d078e41
commit c91a814ffa
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
using System;
#if NET45
using System.Diagnostics;
using Microsoft.Owin.Hosting;
#endif
@ -15,6 +16,7 @@ namespace MvcSample
using (WebApp.Start<Startup>(new StartOptions(baseUrl)))
{
Console.WriteLine("Listening at {0}", baseUrl);
Process.Start(baseUrl);
Console.WriteLine("Press any key to exit");
Console.ReadKey();
}

View File

@ -29,7 +29,7 @@ namespace Microsoft.AspNet.Mvc.Razor
string outFile = Path.Combine(_tempDir, Path.GetRandomFileName() + ".dll");
StringBuilder args = new StringBuilder("/target:library ");
args.AppendFormat("/out:\"{0}\" ", outFile);
foreach (var file in Directory.EnumerateFiles(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "*.dll"))
foreach (var file in Directory.EnumerateFiles(Directory.GetCurrentDirectory(), "*.dll"))
{
args.AppendFormat("/R:\"{0}\" ", file);
}