我正在尝试在 Windows 7 计算机上构建持续集成服务器。我可以在该计算机上干净地运行 msbuild 脚本,但是当我尝试通过构建代理运行它时,某些 COM(.NET 和 c++)组件的注册似乎与注册表的写入权限失败有关。我已经关闭了UAC,但没有什么区别。通常,如果我在本地构建 msbuild 脚本,我必须以提升的权限运行命令提示符,但在构建服务器上我不知道该怎么做。
我看到帖子建议,方法是从项目设置中删除自动注册,并依赖安装来执行此操作。这似乎使得这个选项相当有限,并且该解决方案与从 IDE 运行不兼容。有没有人找到办法解决这个问题?
我们在构建服务器上使用vs2010作为客户端,TFS服务器是vs2008
I am trying to build a continuous integration server on a Windows 7 machine. I can run the msbuild script cleanly on that machine but when I attempt to run it via a build agent the registration of certain COM (.NET and c++) components fail seemingly to do with write permissions to the registry. I have turned off UAC but it makes no difference. Normally if I build the msbuild script locally I have to run the command prompt with elevated permissions, but on a build server I am not sure what to do.
I have seen posts suggesting that the way is to remove the automatic registration from the project setup, and rely on the install to do this. This seems to make it this option rather limited and the solution incompatible with running from an IDE. Has anyone found a way through this?
We are using vs2010 as the client on the build server, and the TFS server is vs2008
发布评论
评论(1)
将您的构建服务用户添加到管理员用户组中。看来您的帐户作为构建代理/服务用户拥有更多权限。
Add your build service user into Administrators user group. It seems like your account has more permissions as build agent/service user.