当我构建我有访问被拒绝错误像这样: C:\ Program Files(x86)\ MSBuild \ 12.0 \ bin \ amd64 \ Microsoft.Common.CurrentVersion.targets(3678):无法复制文件“C:\ Builds \ 2 \ AcuatAgile \ AcuatNFSBuild \ src \ AcuatAgile \ Release001 \ Library \ Kendo.Mvc.dll“to”C:\ Builds \ 2 \ AcuatAgile \ AcuatNFSBuild \ bin \ Kendo.Mvc.dll“。访问路径'C:\ Builds \ 2 \ AcuatAgile \ AcuatNFSBuild \ bin \ Kendo.Mvc.dll'被拒绝。
每次我拒绝访问不同的文件DLL 我搜索网络和大多数答案都是干净的工作空间,你可以看到我真实地清理工作空间,我在构建中遇到了同样的错误。 还有其他参数可以解决这个问题吗?
答案 0 :(得分:2)
Check the properties of bin folder to see whether it is read-only.
Try to add the following MSBUILD arguments in the build definition: /m:1
to make MSBUILD to use only one process to build.