Changes to get the sample running again
This commit is contained in:
parent
6c4d078e41
commit
c91a814ffa
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
#if NET45
|
#if NET45
|
||||||
|
using System.Diagnostics;
|
||||||
using Microsoft.Owin.Hosting;
|
using Microsoft.Owin.Hosting;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -15,6 +16,7 @@ namespace MvcSample
|
||||||
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);
|
||||||
|
Process.Start(baseUrl);
|
||||||
Console.WriteLine("Press any key to exit");
|
Console.WriteLine("Press any key to exit");
|
||||||
Console.ReadKey();
|
Console.ReadKey();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNet.Mvc.Razor
|
||||||
string outFile = Path.Combine(_tempDir, Path.GetRandomFileName() + ".dll");
|
string outFile = Path.Combine(_tempDir, Path.GetRandomFileName() + ".dll");
|
||||||
StringBuilder args = new StringBuilder("/target:library ");
|
StringBuilder args = new StringBuilder("/target:library ");
|
||||||
args.AppendFormat("/out:\"{0}\" ", outFile);
|
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);
|
args.AppendFormat("/R:\"{0}\" ", file);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue