Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 not publishing all of 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 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?

like image 812
Lord of Scripts Avatar asked Jun 13 '12 04:06

Lord of Scripts


1 Answers

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).

like image 60
John Culviner Avatar answered Nov 11 '22 16:11

John Culviner