I need to get an XML file from the bin folder of a class library included with my ASP.Net Web Site. Right now, when I build the project, the xml file is in the bin folder of the class library but it does not get copied into the bin folder of the web site.
I’ve seen a solution of using the post-build event but those are only in web application projects so I can’t use that?
Any other ideas?
There isn’t an elegant/easy way to do this for your web site project (you can’t even add the /bin folder to the project like you could with a web app project template).
What I’d suggest is that instead of putting the .xml into your /bin, I’d put it in a /config folder or other appropriate folder and reference from there.