Nov 4, 2012 at 9:25 PM
Edited Nov 5, 2012 at 8:41 AM
While every project builds successfully when built individually, we get build errors like those below when multiple projects (e.g. under a solution folder) are built in parallel:
------ Rebuild All started: Project: MyProject, Configuration: Release Any CPU ------
16> Couldn't write to file 'MyFile.js'16>EXEC : tsc.js(21005, 21) Microsoft JScript runtime error :
16> MyProject.csproj(68,5): error MSB3073: The command ""C:\Program Files (x86)\Microsoft SDKs\TypeScript\0.8.0.0\tsc" --module amd "File1.ts" "File2.ts"" exited with code 1.
It is not difficult to see that two or more projects, which have common <reference> includes to a shared component, are failing when attempting to compile that shared component, because the output file for that component is locked up.
How do we circumvent this problem?