static Task <int> Update(string kreBin, string projectPath) { return(Kre.From(kreBin) .Run(Path.Combine(kreBin, "lib", "Microsoft.Framework.PackageManager", "Microsoft.Framework.PackageManager.dll")) .WithArgs("restore") .At(projectPath) .Join()); }
static void Run(string kreBin, string projectPath) { Kre.From(kreBin) .Run("Microsoft.Framework.ApplicationHost") .WithAppBase(projectPath) .WithArgs("Microsoft.AspNet.Hosting", "app=Runt.Web", "server=Microsoft.AspNet.Server.WebListener", "server.urls=http://localhost:5002") .At(projectPath) .Join(); }