Visual Studio 2010 not publishing all of App_Data
Asked Answered
E

3

7

I published my project with Visual Studio 2010 Ultimate SP1 and I have a bunch of files in ~/App_Data.

I don't remember if the first upload of appdata was with FTP or with WebDeploy. The problem is when I add new files to ~/App_Data and publish the site, those files (or folders under ~/App_Data) never get published.

My project web deployment settings has the "Exclude App_Data" UNCHECKED so it should be uploading it, yet it doesn't.

Anything else I should do?

Essary answered 13/6, 2012 at 4:11 Comment(0)
D
12

This can happen if you don't have the "Build Action" set to "Content". This can be changed by looking at the properties of the files in question (right click "Properties" on the file).

Dyal answered 13/6, 2012 at 4:17 Comment(0)
S
5

It can be set as below screenshot. Uncheck the exclude App_Data

Setting Page

Stanwinn answered 17/8, 2014 at 12:7 Comment(0)
S
3

Make sure the Build Action in the file properties is set to "Content". , and the Copy to Output Directory is set to "Copy if Newer".

Spasm answered 13/6, 2012 at 4:15 Comment(1)
This is on one or more files within the directory, not on the app_data directory itselfVale

© 2022 - 2024 — McMap. All rights reserved.