如何从WebMatrix项目中删除文件夹?

时间:2021-09-19 22:49:52

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

WebMatrix中项目的默认设置包含一个“帐户”文件夹,其中包含许多文件,如Login.cshtml,Logout.cshtml,Register.cshtml等。

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.

那我怎么能摆脱这个不必要的“行李”呢? StarterSite.sdf也是如此 - 试图删除它只会导致“屏幕闪烁”,但文件仍然在法律上被barnacled到位。

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.

注意:我将尽快为这个问题提供50分。如果我在此之前得到答案,我将奖励赏金后答案。

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

我可以在Visual Studio中打开项目并删除正常的东西......这真的是预期的解决方法吗?

1 个解决方案

#1


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).

您所说的内容不应出现在WebMatrix中。您始终可以使用Windows资源管理器浏览到您站点的位置(默认位置是我的文档/我的网站),但WebMatrix的界面应该允许您删除文件夹和文件(我从来没有遇到过任何问题)。

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.

您的解决方案可能最终将卸载/重新安装WebMatrix(不要忘记从上述位置备份您的网站!)。我个人不知道你怎么能处理这个问题。

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 :)

如果您不想重新安装,只需浏览到“我的文档”文件夹,然后浏览“我的网站”文件夹并将其删除。完成后,返回WebMatrix并在左窗格中显示最上面的文件夹(它将以您的站点名称命名)(显示您的站点目录树),然后点击f5刷新视图。如果有任何一种方法可以帮助我:)

#1


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).

您所说的内容不应出现在WebMatrix中。您始终可以使用Windows资源管理器浏览到您站点的位置(默认位置是我的文档/我的网站),但WebMatrix的界面应该允许您删除文件夹和文件(我从来没有遇到过任何问题)。

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.

您的解决方案可能最终将卸载/重新安装WebMatrix(不要忘记从上述位置备份您的网站!)。我个人不知道你怎么能处理这个问题。

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 :)

如果您不想重新安装,只需浏览到“我的文档”文件夹,然后浏览“我的网站”文件夹并将其删除。完成后,返回WebMatrix并在左窗格中显示最上面的文件夹(它将以您的站点名称命名)(显示您的站点目录树),然后点击f5刷新视图。如果有任何一种方法可以帮助我:)