Changes to get the sample running again
This commit is contained in:
parent
6c4d078e41
commit
c91a814ffa
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue