关于 ASP.NET 临时文件的问题

发布于 2024-10-18 09:12:02 字数 523 浏览 4 评论 0原文

对“Temporary ASP.NET Files”文件夹有疑问;我对该文件夹的用途有一些了解,如本论坛中另一个线程所述

“临时 ASP.NET 文件”文件夹的用途是什么?

但最近,我在尝试构建新项目时收到警告,如下所示:

'c:\WINNT\Microsoft.NET\Framework\ v2.0.50727\Temporary ASP.NET Files\somefolder\filename.cs'与导入的类型冲突...使用一个...

看起来像这样,同一类(.cs 文件)的两个副本(卷影副本)文件存在于两个不同版本的临时文件夹中,因此使用哪一个会令人困惑。

我的问题是:我应该继续删除“Temporary ASP.NET Files”文件夹中的所有内容吗?如果我这样做有什么副作用吗?请告诉我。

谢谢, 拉胡尔

Have a question on "Temporary ASP.NET Files" folder; I have bit knowledge on what this folder is for as outlined by another thread in this forum

What is the "Temporary ASP.NET Files" folder for?

But recently, I am getting a warning while trying to build my new project as below

'c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\some folder\filename.cs' conflicts with the imported type ... using the one ...

Looks like that, two copy (shadow copy) of the same class (.cs file) file exist in two different version of temp folder and hence it's confusing as to use which one.

My Question is: Shall I go ahead and delete all contents from "Temporary ASP.NET Files" folder? Is there any side affect if I do so? Please let me know.

Thanks,
Rahul

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

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

发布评论

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

评论(3

迷鸟归林 2024-10-25 09:12:02

如果关闭 VS 2005 的所有实例,则可以删除该文件夹中的所有文件/文件夹。这个文件夹正如它的名字一样——Temporary。当编译文件为网站加载时进入内存时,它会加载编译文件的所有实例。当您对解决方案执行“清理”时,应该清空与打开的解决方案相关的文件夹中的文件。

如果您清空文件并且仍然遇到此问题,则问题将与您在解决方案中引用项目和第三方库的方式有关。

If you close all of your instances of VS 2005, you can delete all of the files/folders within this folder. This folder is exactly as it's named -- Temporary. It loads all of the instances of your compiled files as they enter memory when they're loaded for a website. When you perform a "clean" on your solution it is supposed to empty the files in the folder relating to your open solution.

If you empty out your files and you continue to have this problem, then the problem will be related to how you have referenced projects and third party libraries within your solution.

无声静候 2024-10-25 09:12:02

如果您现在将您的项目放在 zip 中并将其发送给朋友,那么他没有该项目的临时文件夹,并且也可以构建它......所以您的主要内容应该位于项目目录本身中。您是否已正确保存所有内容?不如关闭你的 V 并清理混乱。 (99%确定)

If you take now your project, put it in a zip and send it to a friend, than he doesnt have the temporary folder for that project, and can build it too... So your main stuff should be in the project directory itself. Have you everything saved properly? Than close your Vs and clean the mess. (99% sure)

半边脸i 2024-10-25 09:12:02

您是否尝试过清理您的解决方案/项目并重新编译?这只会删除与该项目关联的编译/临时文件。

Have you tried to Clean your solution/project and recompile? That would only remove the compiled/temporary files associated with that project.

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