How can I delete a folder from my WebMatrix project?

偶尔善良 提交于 2019-12-11 06:38:26

问题


The default setup for a project in WebMatrix contains an "Account" folder with many files such as Login.cshtml, Logout.cshtml, Register.cshtml, etc.

I do not need/want login capability for the site I'm currently building. So, I removed references to such in the various pages, but when I try to delete the folder itself, the screen flashes but nothing seems to happen.

So how can I get rid of this unneeded "baggage"? The same goes for StarterSite.sdf - trying to delete it just causes a "screen flash" but the file remains intransically barnacled into place.

UPDATE

Note: I am going to bountify this question for 50 points ASAP. If I get an answer prior to that, I will award the bounty post-answer.

I can open the project in Visual Studio and delete things just fine...is that really the expected workaround?


回答1:


What you are saying shouldn't occur in WebMatrix. You can always browse to the location of your sites using Windows Explorer (default location is My Documents/My Web Sites), however WebMatrix's interface should allow you to delete folders and files just fine (I've never had any problems with it).

The solution for you is probably just gonna end up being uninstall/reinstall WebMatrix (don't forget to backup your sites from above-stated location!). I don't personally know how else you can handle that issue.

If you don't want to do a reinstall, then just browse to your "My Documents" folder and then your "My Web Sites" folder and delete it there. After you've done that, go back to WebMatrix and select the uppermost folder (it will be named with your site name) in the left pane (where your site directory tree is shown) and tap f5 to refresh the view. Let me know if either approach helps you :)



来源:https://stackoverflow.com/questions/16138043/how-can-i-delete-a-folder-from-my-webmatrix-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!