从ASP.NET临时文件清理冲突的类文件 [英] Clean conflicting class files from Temporary ASP.NET Files

查看:213
本文介绍了从ASP.NET临时文件清理冲突的类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C类文件冲突:\\ WINDOWS \\ Microsoft.NET \\框架\\ V2.0.50727 \\临时ASP.NET文件\\是$ P $从构建解决方案pventing我。即使我尝试走光了文件夹,每次Visual Studio中启动构建过程,它带来在类文件中使用相同的文件夹名称的temp文件夹。如果我重启机器或保留一夜,项目建设没有错误。反正有没有告诉Visual Studio中删除/忽略/清洁任何挥之不去的类文件,可能是在Temp文件夹?

Class file Conflicts in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ is preventing me from building the solution. Even though I try emptying out the folder, each time Visual Studio starts the build process, it brings in the class file in to the temp folder with the same folder name. If I restart the machine or leave it overnight, project build without error. Is there anyway to tell Visual studio to delete/ignore/clean any lingering class files that could be in the temp folder?

在VS干净的解决方案选项也不起作用。在冲突类文件是从APP_ code文件夹中。

Clean solution option in VS doesn't work either. Class file in conflict are from the App_Code folder.

推荐答案

添加<一个href=\"http://stackoverflow.com/questions/586790/eliminating-temporary-asp-net-files/592673#592673\">this这里直接回答:移动临时位置,更便于清洁或pre-生成事件

Adding this as an answer here directly: move the temp location for easier cleaning or a pre-build event

<system.web>

   <compilation tempDirectory="d:\TempASP.NETFiles\">

      ...

   </compilation>

</system.web>

来源是这样,请回答,从而导致此:
<一href=\"http://blog.cwa.me.uk/2007/10/15/relocating-temporary-aspnet-files/\">http://blog.cwa.me.uk/2007/10/15/relocating-temporary-aspnet-files/

这篇关于从ASP.NET临时文件清理冲突的类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆