Why are certain files not published in the App_Data folder?
Asked Answered
C

2

11

I'm using Visual Studion 2008 to build and deploy a webservice project. I've added a bunch of files to the App_Data folder: some xml, some plain text and 2 pdf's. All these files are included in the .csproj file (if they are not, they will not be published) But when doing a 'publish' from VS2008 (of course with the option 'Included files from the App_Data folder' selected) the pdf's are NOT published. I have tested this with both 'replace' and 'delete' options selected.

Does anyone know why certain files, in this case PDF's, are not published?

Civet answered 12/8, 2009 at 14:40 Comment(0)
L
20

In the solution explorer right click your pdf's and look at the properties. Change the Build Action from 'None' to 'Content'. The files should now be published with the rest of the project.

Langlois answered 13/8, 2009 at 17:17 Comment(3)
Tested, and confirmed. Thanks!!Civet
What causes some files to be marked "None" instead of "Content" to begin with?Clotilde
PDF files, among other types, are marked 'None' by default when adding them to the solutionCivet
M
0

I had the same problem where CSV files do not publish. Select the file's properties. Change the Build Action from 'None' to 'Content'. Problem solved.

Montymonument answered 23/11, 2011 at 19:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.