From d5483f3b6458cd1cb266ad87990d4deb7de5c95c Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Fri, 19 May 2017 15:16:49 +0100 Subject: [PATCH] Add workaround for 'publish' tests failing since 2.0 update --- test/templates/util/aspnet.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/templates/util/aspnet.ts b/test/templates/util/aspnet.ts index d320fc2..ec315ef 100644 --- a/test/templates/util/aspnet.ts +++ b/test/templates/util/aspnet.ts @@ -115,7 +115,11 @@ export class AspNetProcess { } export function publishProjectSync(sourceDir: string, outputDir: string) { - childProcess.execSync(`dotnet publish -c Release -o ${ outputDir }`, { + // Workaround for: MSB4018: The "ResolvePublishAssemblies" task failed unexpectedly + // TODO: Remove this when the framework issue is fixed + const aspNetCore20PublishWorkaround = '/p:TargetManifestFiles='; + + childProcess.execSync(`dotnet publish -c Release -o ${ outputDir } ${ aspNetCore20PublishWorkaround }`, { cwd: sourceDir, stdio: 'inherit', encoding: 'utf8'