开发者

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

Today I learned that on开发者_JS百科e 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜