Workaround for publishing issue

This commit is contained in:
Steve Sanderson 2017-11-16 17:25:01 +00:00
parent 2dda2dd99d
commit f028839b5d
1 changed files with 6 additions and 1 deletions

View File

@ -30,8 +30,13 @@ namespace Templates.Test.Helpers
if (publish)
{
output.WriteLine("Publishing ASP.NET application...");
// Workaround for issue with runtime store not yet being published
// https://github.com/aspnet/Home/issues/2254#issuecomment-339709628
var extraArgs = "-p:PublishWithAspNetCoreTargetManifest=false";
ProcessEx
.Run(output, workingDirectory, DotNetMuxer.MuxerPathOrDefault(), "publish -c Release")
.Run(output, workingDirectory, DotNetMuxer.MuxerPathOrDefault(), $"publish -c Release {extraArgs}")
.WaitForExit(assertSuccess: true);
workingDirectory = Path.Combine(workingDirectory, "bin", "Release", framework, "publish");
}