构建后副本链接文件... [英] Post-Build copy linked file...
问题描述
我正在使用VS2003.是否可以创建将链接(例如,不在项目中,而是在另一个项目中对文件的引用)复制到输出文件夹的生成后事件?
我为什么要这样做?我在类库(xml)和一个单独的单元测试项目中都有一个配置文件.我希望在单元测试项目中使用与Tested dll中相同的配置文件.我已链接到配置文件,但是当我尝试将此文件复制到输出目录以便nunit可以找到它时,没有实际文件要复制.重复的配置文件?
谢谢.
FB
I am using VS 2003. Is there any way to create a post-build event that copies a linked (as in not in the project but a reference to a file in another project) to an output folder?
Why do I want do do this? I have a configuration file in a Class library (xml) and a separate unit testing project. I wish to use the same configuration file in the unit testing project as is being used in the Tested dll. I have linked to the config file but when I try to copy this file to the output directory so that nunit can find it, there is no actual file to copy.
Any thoughts on how I can achieve this without having duplicate config files?
Thanks.
FB
推荐答案
看起来像复制文件是唯一的选择. ..哦,我怎么想念符号链接.
Looks like duplicating the file is the only option... oh how I miss sym links.
这篇关于构建后副本链接文件...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!