将 rake 与 Teamcity 结合使用会出现 RegexError

发布于 2024-07-21 20:08:12 字数 404 浏览 1 评论 0原文

每次我尝试使用 team city 使用 rake 构建 .NET 解决方案时,我都会收到相同的

"Format_exception_msg : Invalid escape character syntax: /path to rakefile/ (RegexError)

结果我的自然假设是我的 rake 代码中的某个位置实际上有一个无效的转义字符,我承认我从未使用过 ruby​​ 或rake 之前,但脚本本身执行没有问题,并且在不使用 teamcity 的情况下在命令行上执行时表现得像应该的那样。

此外,我慢慢地检查了代码,注释掉了行,以尝试缩小无效字符可能所在的范围,并且即使完全注释掉了 rake 文件,团队城市进程仍然会失败。

感谢您的帮助,如果需要更多信息,请告诉我。

Every time that I try use team city to build a .NET solution using rake I receive the same

"Format_exception_msg : Invalid escape character syntax: /path to rakefile/ (RegexError)

My natural assumption would be that I have in fact a invalid escape character somewhere in my rake code, I admit that I've never used ruby or rake before, but the script itself executes without problems and behaves as it should when executed on the command line without the use of teamcity.

Furthermore, I went through my code slowly commenting out lines to try to narrow down where the invalid character could be and the team city process continuted to fail even with a completely commented out rake file.

Thanks for the help, let me know if more information is needed.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文