简体   繁体   中英

How to add SomeLibrary.dll.config to project in VS2008

Today I learned that one of the .NET libraries I use, OpenTK, requires me to put OpenTK.dll.config in the dir of the app executable . The question is, how do I do that conveniently in VS2008?

I can add it to my VS project next to my source files, and set it to "Copy if newer" - that works fine. But then my file list in the Solution Explorer is cluttered with this nonsource file in the middle of the source files. Any other way?

That's what I do.
I put the config file in the root and set "Copy Always" (Copy if newer is fine). Another alternative is to put it in your bin folder, maybe setting read-only attribute so you avoid to delete it by mistake. I tend to prefer the first solution cause:

A) I now I am using an external config file
B) I can update it easily from VS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM