无法删除 Visual Studio 2010 创建的项目文件夹

发布于 2025-01-06 17:11:30 字数 251 浏览 0 评论 0原文

我创建了一个 Visual Studio 2010 项目,我想完全删除该项目,其中包括所有项目文件夹。

我以管理员身份登录。

我尝试删除文件资源管理器中的文件夹,但只收到一条消息,告诉我需要拥有管理员权限才能删除它。

Visual Studio 似乎已锁定管理员帐户无法访问的项目文件夹。

我知道我有权自行创建和删除文件夹,因为我创建了一个测试文件夹并将其删除,没有任何问题。

你知道解决这个问题的方法吗?

I created a Visual Studio 2010 project that I want to remove completely and that includes all project folders.

I'm logged in as the administrator.

I tried to delete the folders in the file explorer, but only get a message telling me I need to have administrator permission to delete it.

Visual Studio seems to have put a lock on the project folders that an administrator account can't access.

I know I have rights to create and remove folders on my own because I created a test folder and deleted it without any issues.

Do you know a work-around for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(13

无声静候 2025-01-13 17:11:30

已解决:

以下是我采取的步骤:

  • 导航到要删除的文件夹内的文件夹之一。如果无法删除,请导航至子文件夹。

  • 删除它。

  • 删除子文件夹后,我能够删除主解决方案文件夹。

  • 我还没有尝试过删除,但我最近找到了如何打开隐藏的管理员帐户。我假设它会让我删除文件。

Solved:

Here are the steps I took:

  • Navigate into one of the folders inside the one to remove. If it can't be deleted, navigate into a sub folder.

  • Delete it.

  • After the sub folder are removed, I was able to get rid of the main solution folder.

  • I have not tried this yet for deleting, but I recently found how to turn on the hidden Administrator account. I'm assuming it would let me delete the files.

人间☆小暴躁 2025-01-13 17:11:30

Windows 任务管理器中针对您启动的每个解决方案都有一个进程 (VBCSCompiler.exe)。
要删除解决方案目录,您必须终止此进程(VBCSCompiler.exe),然后删除该目录。

There is a process (VBCSCompiler.exe) in Windows Task Manager to every solution you have started it.
to delete the solution directory you have to kill this process (VBCSCompiler.exe) then delete the directory.

层林尽染 2025-01-13 17:11:30

首先尝试退出 Visual Studio

Try to exit from Visual Studio first

神妖 2025-01-13 17:11:30

我也有同样的问题。我在互联网上找到的所有建议都不起作用(所有权、权限等)。无论如何,我拥有这一切,因为我是我的电脑的管理员,并且对话框说我必须获得自己的许可才能删除它!

最后我将文件夹重命名为1st,然后将其删除。它起作用了。我尝试验证这一点,但是我使用 VS 创建的后续文件夹没有出现同样的问题。

I had the same problem. None of the suggestions I found on the internet worked (ownership, permissions, etc.) I had all this anyway as I am administrator on my PC and the dialogue box said I must get permission from myself to delete it!

In the end I renamed the folder 1st, then deleted it. It worked. I tried to verify this, but subsequent folders that I created with VS didn't give the same problem.

傲世九天 2025-01-13 17:11:30

转到任务管理器并找到所有 Visual Studio 程序并结束任务。

然后删除该文件夹。

Go to task manager and find all visual studio programs and end the tasks.

Then delete the folder.

何以畏孤独 2025-01-13 17:11:30

这是一个很大的烦恼。我很想编写一个 DOS 批处理 shell 脚本,该脚本可以向下钻取并从项目层次结构的底部向上删除文件。但我有一份有截止日期的工作。

我只是将项目文件夹剪切并粘贴到我的 c:\temp 文件夹中,以使其远离我的视线!

This is a major annoyance. I'm tempted to write a DOS batch shell script that drills down and removes files from the bottom of the project hierarchy on up. But I've a job with deadlines.

I just cut and pasted the project folder to my c:\temp folder to get it out of my sight!

ゝ杯具 2025-01-13 17:11:30

我添加了一个新项目,例如用户控件。然后从项目中排除该文件夹。关闭VS 2010。然后进入项目文件夹并删除files/usercontrol.ascx。最后删除了文件夹。现在从我的本地驱动器本身打开 VS 解决方案,并且没有使用查看开始页面链接来打开解决方案。

I added a new item like user control. Then excluded the folder from project. Closed VS 2010. Then went to the project folder and deleted the files/usercontrol.ascx. Finally deleted the folder. Now opened the VS solution from my local drive itself and did not use view start page-link to open the solution.

南渊 2025-01-13 17:11:30

没有一个答案对我有用。
只有在我通过任务管理器结束进程 devenv.exe 后,它才允许我删除 .vs 文件夹。

None of the answers worked for me.
Only after i ended the process devenv.exe via Task Manager, it allowed me to delete .vs folder.

诗酒趁年少 2025-01-13 17:11:30

对我来说,它归结为 /bin/roslyn/ 文件夹。如果您遇到这种情况,请在任务管理器中结束 VBCSCompiler.exe 的所有实例。

无法删除 \ bin\roslyn\VBCSCompiler.exe - 访问被拒绝

For me, it came down to the /bin/roslyn/ folder. If this is the case for you, end all instance of VBCSCompiler.exe in the Task Manager.

Can not delete \bin\roslyn\VBCSCompiler.exe - Access is denied

南街女流氓 2025-01-13 17:11:30

只有先删除所有子文件夹中的所有文件后,我才能删除该文件夹。

不过很奇怪。即使在重新启动后,Visual Studio 似乎也会以某种方式锁定它,但它不会锁定单个文件。例如,我必须删除 1 个特定文件夹中的所有文件。一旦它们被删除,我就可以删除文件夹本身。

好吧,至少我知道下次该怎么处理。

I was able to delete the folder only after deleting all of the files in all the sub folders first.

Very strange though. It seems Visual Studio somehow locks it even after a reboot but it does not lock the individual files. For example I had to remove all the files in 1 particular folder. Once they were deleted it allowed me to delete the folder itself.

Well, at least I know how to handle it the next time.

那支青花 2025-01-13 17:11:30

就我而言,这些解决方案都不起作用。

对于那些使用 Docker 支持运行应用程序的用户,请确保首先使用以下命令停止容器:

docker stop your_container_id

docker rm -f your_container_id

,然后您可以删除项目文件夹。但是,在某些情况下,您可能需要暂时退出 Docker 才能删除该文件夹。

In my case, none of these solutions worked.

For those who run their application with Docker support, make sure you stop the container first with:

docker stop your_container_id

or

docker rm -f your_container_id

and then you can delete the project folder. However, in some cases, you may have to quit Docker temporarily to delete the folder.

揽清风入怀 2025-01-13 17:11:30

我删除了 .vs 文件夹,然后删除了同一级别的其他文件夹。这允许我删除主文件夹。

I deleted the .vs folder and then the other folders at the same level. That allowed me to delete the main folder.

坏尐絯℡ 2025-01-13 17:11:30

我在 Visual Studio 2022 中多次遇到同样的问题,并且每次此解决方案都有效。

如果您不想执行任何操作,请等待 1 分钟,然后重试,然后在关闭 Visual Studio 后删除该文件夹。

我认为Windows需要一些时间来自动清理Visualstudio使用的Project文件夹中的资源。

I have experienced same problem with visual studio 2022 multiple time and every time this solution works.

If you don't want to do anything then wait for 1 min and try again to delete that folder after closing visual studio.

I think windows takes some time to automatically clean up resources in Project folder used by visualstudio.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文