如何避免重复的app.config使用Visual Studio 2008单元测试?单元测试、config、app、Visual

由网友(崆野)分享简介:当我在我的主要项目中的一个app.config中我总是把它复制到它的测试项目。如何避免呢?When I have one app.config in my main project I always have to duplicate it to its test project. How to avoid it?更...

当我在我的主要项目中的一个app.config中我总是把它复制到它的测试项目。如何避免呢?

When I have one app.config in my main project I always have to duplicate it to its test project. How to avoid it?

更新我也问了a非常相似,稍复杂的问题

推荐答案

添加它作为一个地方的链接。选择项目作为一个与真实的app.config之一,它链接到其他项目。

Add it as a link from a single place. Choose one of the projects as the one with the real app.config and link it to the other projects.

添加 - >现有项 - >导航到配置文件 - >添加为链接(向下箭头在添加按钮)

Add -> Existing Item -> Navigate to config file -> add as link (the down arrow in the Add button)

阅读全文

相关推荐

最新文章