我们可以自动复制* .dll.config吗? [英] Can we autocopy the *.dll.config?

查看:53
本文介绍了我们可以自动复制* .dll.config吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在引用库程序集时,它会自动复制到最终的bin目录中.但是* .dll.config不是,有没有办法自动复制此配置文件?

when refering to a library assembly, it is auto copied to the final bin directory. However the *.dll.config is not, is there a way to automatically copy this config file?

推荐答案

在Visual Studio中,打开活动文件时会有一个属性"部分.对于App.config,它具有名为复制到输出目录的属性,选项为

In Visual Studio, there's a 'properties' section when you have the active file open. For the App.config, it has a property called Copy to Output Directory, the options are

  • 请勿复制
  • 如果较新则复制
  • 始终复制

您需要第二个或第三个选项.

You want either the second or the third option.

这篇关于我们可以自动复制* .dll.config吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆