mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Add workaround for 'publish' tests failing since 2.0 update
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user