I need help.
Create a lib folder in which you want to put the dll files.
How to do it.
I do not want to find the dll files with exe file.
I'd like to fix it in the lib folder. I do not want to be in the References.
Thanks in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Dec 11, 2013, 3:56 PM
If you're using the command line compiler, you can either do this using the /r command line switch or by including the referenced dll in the csc.rsp file. The latter lists the dlls which are always referenced by default.
However, when the compiler searches for a dll, it starts by looking in the current working directory and, if it isn't there, it looks in the CLR system directory.
However, you can add other directories for the compiler to search after that using either:
1. The /lib command line switch (e.g. /lib:dir1, dir2); or
2. The LIB environment variable.
It's perhaps #1 above which you have in mind?
sasa lazicPosted Dec 13, 2013, 3:59 AM