cruisecontrol.net - MSB3491 : Could not write lines to file cruise control

标签 cruisecontrol.net clearcase

当我尝试从 MSBUILD 构建解决方案文件时收到以下错误。
我正在从 ClearCase 集成流构建解决方案文件。

当我从不同的系统执行相同的操作时,它在集成流中运行良好。

我已尝试创建文件并将其写入 N/W 驱动器,它工作正常。

但是当我通过 CruiseControl 构建它时,它会抛出以下错误。

 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3041,9): 
 error MSB3491: 
 Could not write lines to file "obj\DAL.csproj.FileListAbsolute.txt".  
 Access to the path 'M:\yj73_SRDV3G_Proj_01_00_int\SRM_COMP\SRDV3G_Project\CRDB_V3\Application_Source\DAL\obj\DAL.csproj.FileListAbsolute.txt' is denied.

最佳答案

两个常见的原因:

  • CLEARCASE_PRIMARY_GROUP 环境变量设置不正确,没有引用 Vob \SRM_COMP 的主要或次要组(参见 cleartool descr -l vob:\SRM_COMP 以获得这些组的列表)
  • 当前配置规范未选择该路径。
    最好在 M:\yj73_SRDV3G_Proj_01_00_int\SRM_COMP\SRDV3G_Project\CRDB_V3\Application_Source\DAL 中执行 cleartool ls 以查看 ClearCase 如何显示 obj

OP user1383839 confirms没有为 Build Loop 使用正确的帐户,这意味着它没有从正确的环境变量中受益,因此出现“拒绝访问”消息。
或者您也可以以不同的用户身份“runas”项目(参见“Running cruise control.net under different credentials”)

关于cruisecontrol.net - MSB3491 : Could not write lines to file cruise control,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13026972/

相关文章:

windows - clearcase_albd - 它需要 clearcase 许可证吗?

build-automation - 使用CruiseControl.NET进行不同类型的构建

clearcase - Clearcase 中事件的反向 Changset

windows - 如何在 64 位 Windows 7 上将 Clear Case 与 Windows 资源管理器集成

当 maxcpucount 大于 1 时,MSBUILD 失败并显示 "The process cannot access the file xxxxx because it is being used by another process."

git - 使用ClearCase和Git走向理想的工作流程

view - 我在 ClearCase 中的快照 View 消失了,如何恢复它们?

.net - CruiseControl.NET 中的构建顺序与项目依赖项

deployment - 如何使用 CruiseControl.NET 和 MSBuild 部署/发布 Web 应用程序?

c# - 在 C# 中创建日志