Last post Jul 12, 2012 01:24 PM by shree_ars
Jul 05, 2012 07:07 AM|shree_ars|LINK
I have a class library and web project.
when i add reference to web project for class library.. the library .dll will get copied to the bin folder of web project.like that .. the class library also has one app.config file, how to move to web project when ever the class library will get rebuilded?
Jul 06, 2012 07:57 PM|jamlew|LINK
Are you sure you want the app.config copied? When the web app runs, it will only read from web.config, even when executing code from your class library.
Jul 09, 2012 12:34 PM|shree_ars|LINK
yes... i need to copy..
If u see properties of app.config in class library.. i have setted "Copy to Output Directory = Copy Always".
But it doesnt happen when i build the entire solution.
Jul 09, 2012 02:49 PM|Ruchira|LINK
i have setted "Copy to Output Directory = Copy Always".
Please check and make sure Build Action is set to Content.
My Tech blog | My YouTube Channel
Jul 10, 2012 08:21 AM|shree_ars|LINK
Yes i also tried by setting the BuildAction = Content.
Actually my reference is by indirect project i.e A=>B=>C
I think may be since direct reference is not linked the config is not get copied.. Is it right?
Jul 12, 2012 01:24 PM|shree_ars|LINK
referenced dll associated files will get conpied to referal project if its a direct reference.
if its a indirect reference i.e A=>B=>C then the file copy will not happen.