Anees Dhansey
Anees Dhansey

Reputation: 139

Visual Studio - Deleted files keep coming back

I have an ASP.NET project where i added a folder in the project directory. Now that I don't need the folder, I deleted it from the project directory but whenever I reopen the solution, it keeps coming back. Any help would be greatly appreciated.

Thanks.

Upvotes: 1

Views: 4553

Answers (1)

Chris Pickford
Chris Pickford

Reputation: 9001

If a missing folder is referenced in your project (.csproj/.vbproj) file then on load it will be recreated.

Remove the unneeded folder using Solution Explorer and this will remove the references, or alternatively open the project file in a text editor and remove the referencing lines manually.

Upvotes: 1

Related Questions