构建服务器、构建代理、com 注册和 Windows 7 权限

发布于 2024-09-28 09:56:07 字数 334 浏览 3 评论 0 原文

我正在尝试在 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

謌踐踏愛綪 2024-10-05 09:56:07

将您的构建服务用户添加到管理员用户组中。看来您的帐户作为构建代理/服务用户拥有更多权限。

Add your build service user into Administrators user group. It seems like your account has more permissions as build agent/service user.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文