Add workaround for 'publish' tests failing since 2.0 update

This commit is contained in:
Steve Sanderson
2017-05-19 15:16:49 +01:00
parent a4512873f9
commit d5483f3b64

View File

@@ -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'