How to remove "App_data" from a web project?

When I asked VS to create me a web application, he also created App_Data. I remove this guy from the local folder structure, but he appears in the project (in vs). When I try to delete it, I get a "source controlled by source, or blocked elsewhere ...)

+4
source share
2 answers

To delete the App_Data folder, first delete it from the local file system. Close your solution in Visual Studio if it is open. Then in the Source Control Explorer manually check the .csproj file (or .vbproj, etc.). Open the project file in a text editor and search:

<Folder Include="App_Data\" /> 

Delete this line and save and close the file. In the source code explorer, check the file back. When you open your project again in Visual Studio, the App_Data folder should disappear.

+9
source

Removing a folder in a solution under TFS is not as easy as it seems ... Just follow the instructions here: Removing a folder in TFS

0
source

All Articles