Getting content files from class library over to app_data

F

Frank

Hi,

Originally I was planning to do some code reuse (yeah.. that
exists..didn't want to believe it either) with some class library
projects that I now want to use in a asp.net 2.0 web app in VS 2005.
The solution contains both the web app and the class libraries. Inside
the class libraries there are some xml files marked as content files
and configured to be copied to the output directory on build. This
worked perfectly fine for a windows app and a windows service but
fails to copy these xml files over to the web app's "app_data" folder
or at least the web app's root dir.
I've already thought about compiling the files as embedded resource
but that doesn't work with the way my Dao stuff is working, it really
has to be files on the disk.
Right now my workaround is to have the xml files copied over to the
web app's app_data folder.

Does anyone know how to copy content files from a class library to
app_data on build?

Greets
Frank
 
B

bruce barker

look at the msbuild <Copy> task and add it to your project file.

-- bruce (sqlwork.com)
 
F

Frank

Woo totally forgot to reply

I didn't get around to look at the copy task but I bet it will be the
thing I was looking for.

Thanks a bunch!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top