从创建,并在每个版本中删除停止app_offline.htm? [英] stopping app_offline.htm from being created and deleted at each build?
问题描述
我在Visual Studio 2008 SP1具有2项目的解决方案,.NET框架3.5 SP1。
I have a solution with 2 projects in Visual Studio 2008 SP1, .NET Framework 3.5 SP1.
- 一个ASP网站。
- 一类库(DLL)项目。
我已经从网站的类库引用,作为类库是我的数据层。但不管怎么说,事情只发生与此基本设置,与这些2类型的项目的解决方案,并从Web站点的类库引用。
I have a reference from the Web Site to the Class Library, as the Class Library is my data layer. But anyway, the thing happens only with this basic setup, a solution with these 2 types of projects and a reference from the Web Site to the Class Library.
现在,每次我修改类库的东西,我盖了,Visual Studio创建一个名为app_offline.htm,然后将其删除(将其发送到回收站)。
Now, each time I modify something in the Class Library and I build it, Visual Studio creates a file called app_offline.htm and then deletes it (it sends it to the Recycle Bin).
这实在是烦人,因为在这一天我结束了一个完整回收站和我的终点,是我是完美主义者,我要保持清洁。我不是唯一一个这样的问题:<一href=\"http://morewally.com/cs/blogs/wallym/archive/2007/10/11/visual-studio-2008-thursday-october-11-2007.aspx\"相对=nofollow>这里和这里。
This is really annoying because at the end of the day I end up with a full Recycle Bin and me, being the perfectionist I am, I want to keep it clean. I'm not the only one with this problem: here and here.
我现在知道了问题的原因,但仍然不是如何解决它。如果您之前没有听说过app_offline.htm,这里是 ScottGu的文章在app_offline :
I know now the cause of the problem, but still not how to fix it. If you didn't hear about app_offline.htm before, here's ScottGu's article on app_offline.:
有谁知道一个解决问题的办法?在VS的一些设置来生成过程后永久删除该文件? (我真的不希望我的设置回收站要做到这一点,因为我无意中从时间删除东西的时间,我希望能够恢复那些。)
Does anyone know a solution to the problem? Some setting in VS to delete the file forever after the Build process? (I really don't want to set my Recycle Bin to do that, as I do delete things unintentionally from time to time and I'd like to be able to recover those.)
推荐答案
该文件不进入回收站我。也许你有安装了一些严厉的事业,它这样做呢?许多反病毒工具和用来做这个早在2000年通用系统实用工具套件,但我没有更高版本的经验。
This file does not go into the Recycle Bin for me. Perhaps you have some draconian utilities installed, which do this? Many anti-virus tools and general system utility suites used to do this back in 2000 but I do not have experience with later versions.
更新:您可以使用过程监控来找出哪个进程该文件移动到回收站。
Update: You can use Process monitor to find out which process moves this file to the recycle bin.
这篇关于从创建,并在每个版本中删除停止app_offline.htm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!