开发者

How to remove "App_data" from a web project?

开发者 https://www.devze.com 2023-03-16 03:01 出处:网络
When I asked VS to create m开发者_C百科e 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

When I asked VS to create m开发者_C百科e 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....)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消