在这个解决方案中,我有两个应用程序:
AppA
和AppB
,它们共享类库Shared
。我尝试使用PowerShell和node脚本自动构建/并行运行它们(我也可以接受其他解决方案)。我同时使用了--no-dependencies
和--no-restore
标记,但是偶尔会遇到以下问题:'CSC : error CS2012: Cannot open \'C:\\Users\\User\\source\\repos\\ParallelBuild\\Shared\\obj\\Debug\\netcoreapp2.0\\Shared.dll\' for writing -- \'The process cannot access the file \'C:\\Users\\User\\source\\repos\\ParallelBuild\\Shared\\obj\\Debug\\netcoreapp2.0\\Shared.dll\' because it is being used by another process.\' [C:\\Users\\User\\source\\repos\\ParallelBuild\\Shared\\Shared.csproj]\r\n'
node:
运行build-script
或node ./build-script/app.js
来启动项目。
为什么使用--no-dependencies
标志时仍然会构建Shared
项目?如何并行构建或同时构建?