如何防止app.config集成到.net库(dll)中 [英] How do I prevent the app.config from being integrated into a .net Library (dll)

查看:57
本文介绍了如何防止app.config集成到.net库(dll)中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编译库时,Settings.Settings中的所有设置都集成到DLL中.我该如何预防?

When I compile the library, all the settings in Settings.Settings are integrated into the DLL. how do I prevent this?

推荐答案

查看Settings.settings文件的属性,并将构建操作"设置为资源",将复制到输出目录"设置为不复制".

View the properties of the Settings.settings file and set the Build Action to Resource, Copy to Output Directory to Do Not Copy.

这应该创建一个dll.config文件,您可以在其中编辑建筑物外部的设置.

This should create you a dll.config file where you can edit the settings outside of building.

这篇关于如何防止app.config集成到.net库(dll)中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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