From f028839b5db058758ff41ee31ea93e48356f32b2 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Thu, 16 Nov 2017 17:25:01 +0000 Subject: [PATCH] Workaround for publishing issue --- test/Templates.Test/Helpers/AspNetProcess.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/Templates.Test/Helpers/AspNetProcess.cs b/test/Templates.Test/Helpers/AspNetProcess.cs index 454c89fc29..48d7a00f14 100644 --- a/test/Templates.Test/Helpers/AspNetProcess.cs +++ b/test/Templates.Test/Helpers/AspNetProcess.cs @@ -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"); }