appharbor 测试项目 app.config 文件不会更改其连接字符串
我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
连接字符串仅在部署代码时插入。一般来说,在单元测试期间您不应该访问数据库或执行其他外部 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.