Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove "App_data" from a web project?

When I asked VS to create me a web application it also created App_Data. I delete this guy from the local folder structure but he is showing up in the project (in vs). When I try to delete him i get "source controlled item is either exclusively locked elsewhere....)

like image 212
Chunkey pandey Avatar asked Jan 19 '23 08:01

Chunkey pandey


1 Answers

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

<Folder Include="App_Data\" />

Delete that line and save & close the file. In Source Control Explorer, check the file back in. When you reopen your project in Visual Studio, the App_Data folder should be gone.

like image 153
ronx Avatar answered Jan 28 '23 15:01

ronx