Add workaround for 'publish' tests failing since 2.0 update
This commit is contained in:
parent
a4512873f9
commit
d5483f3b64
|
|
@ -115,7 +115,11 @@ export class AspNetProcess {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function publishProjectSync(sourceDir: string, outputDir: string) {
|
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,
|
cwd: sourceDir,
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue