尝试从 Clearcase 读取 vbs 文件时出现访问被拒绝错误
我的 .Net 2010 开发环境已使用 ClearCase 正确配置。签入和签出以及其余操作在 .Net IDE 中正常工作。当我尝试构建 Web 设置项目时出现问题。
在 PreBuildEvent 中,我正在执行 .vbs 文件来更改构建版本号。如果我尝试在不签出 .vbs 文件的情况下构建 Web 设置项目,则会失败:
Building file 'x:\Release\WhateverApp.msi'...
Starting pre-build events...
Access is denied.
如果我签出 .vbs 文件,则构建成功。
有人可以指出我应该寻找什么以确保它在不签出文件的情况下成功构建项目的正确方向吗?
My .Net 2010 Development environment is properly configured with ClearCase. Checkins and Checkouts and rest of the operations work normally from within .Net IDE. The problem occurs when I try to build the web setup project.
In PreBuildEvent, I am executing .vbs file to change the build version number. If I try to build the web setup project without checking out the .vbs file, it fails saying :
Building file 'x:\Release\WhateverApp.msi'...
Starting pre-build events...
Access is denied.
If i checkout the .vbs file, it builds successfully.
Can someone point me in the right direction what should i look for to make sure it builds the project successfully without checkingout the file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我们讨论的是快照视图(在
c:\...
上,即使您将所述视图安装在X:
驱动器盘符上),那么您可以劫持文件以避免结帐步骤。默认情况下,在 ClearCase 视图中,非签出文件是只读的。
这意味着您希望在不通知 ClearCase 的情况下将文件属性设置为读写。
If we are talking about a snapshot view (on
c:\...
even though you mounted said view on theX:
drive letter), then you can hijack the file in order to avoid the checkout step.By default in a ClearCase view, a non-checkout file is read only.
So that means you want to set the file attribute to read-write without notifying ClearCase.