Visual Studio 2010 does not publish all App_Data

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

I don’t remember whether the first download of appdata was from FTP or using WebDeploy. The problem is that when I add new files to ~ / App_Data and publish the site, these files (or folders under ~ / App_Data) are never published.

In my web deployment settings of the project there is “Exclude App_Data” UNCHECKED, so it should be loaded, but it’s not.

Anything else I have to do?

+7
source share
3 answers

This can happen if you do not have the “Build Actions” set to “Content”. This can be changed by viewing the properties of the corresponding files (right-click the "Properties" in the file).

+12
source

It can be set as a screenshot. Uncheck exclude App_Data p>

Setting Page

+5
source

Verify that the assembly property in the file properties is set to Content. , and the Copy to Output directory is set to Copy if New.

+3
source

All Articles