简体   繁体   English

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

[英]Question On Temporary ASP.NET Files

Have a question on "Temporary ASP.NET Files" folder; 对“Temporary ASP.NET Files”文件夹有疑问; 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? 什么是“Temporary ASP.NET Files”文件夹?

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 ... 'c:\\ WINNT \\ Microsoft.NET \\ Framework \\ v2.0.50727 \\ Temporary ASP.NET Files \\ some folder \\ filename.cs'与导入的类型冲突...使用一个...

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. 看起来,同一类(.cs文件)文件的两个副本(卷影副本)存在于两个不同版本的临时文件夹中,因此使用哪一个令人困惑。

My Question is: Shall I go ahead and delete all contents from "Temporary ASP.NET Files" folder? 我的问题是:我可以继续删除“Temporary ASP.NET Files”文件夹中的所有内容吗? Is there any side affect if I do so? 如果我这样做,会有任何副作用吗? Please let me know. 请告诉我。

Thanks, Rahul 谢谢,拉胡尔

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. 比关闭你的Vs并清理混乱。 (99% sure) (99%肯定)

Have you tried to Clean your solution/project and recompile? 您是否尝试过清理解决方案/项目并重新编译? That would only remove the compiled/temporary files associated with that project. 这只会删除与该项目关联的编译/临时文件。

If you close all of your instances of VS 2005, you can delete all of the files/folders within this folder. 如果关闭所有VS 2005实例,则可以删除此文件夹中的所有文件/文件夹。 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. 如果您清空文件并且仍然遇到此问题,则问题将与您在解决方案中引用项目和第三方库的方式有关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM