appharbor 测试项目 app.config 文件不会更改其连接字符串

发布于 2025-01-08 07:22:04 字数 173 浏览 1 评论 0原文

我的 appharbor 解决方案中有一个测试项目,它使用位于测试项目的 app.config 中的连接字符串。

在 appharbor 构建项目之前,它不应该像更改 Web 项目中的连接字符串一样更改 app.config 中的连接字符串吗?

两个文件中的连接字符串名称相同。

谢谢

I have a test project in my appharbor solution which uses the connectionstring located in the app.config of the test project.

before appharbor builds the project shouldn't it change the connectionstring in the app.config just like it changes the connectionstring in the Web project?

the connectionstring name is the same in both files.

Thanks

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

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

发布评论

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

评论(1

失去的东西太少 2025-01-15 07:22:04

连接字符串仅在部署代码时插入。一般来说,在单元测试期间您不应该访问数据库或执行其他外部 I/O。

The connectionstring is only inserted when your code is deployed. In general, you shouldn't hit your database or do other external I/O during unit testing.

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