可以关闭App_Code自动编译吗?
使用 Visual Studio(我使用的是 2008)我开始注意到,当您将文件保存在 /App_Code 文件夹中时,程序将在返回控制之前挂起一段时间。经过一番研究后,我了解到有一个自动编译功能在起作用,我认为这是导致我的系统变慢的原因。
那么问题是这样的:是否可以关闭/App_Code文件夹中文件的自动编译?或者,更好的是,有没有办法减少它所花费的时间,或者让它在后台运行得更顺利一些?任何想法/想法表示赞赏!
Working with Visual Studio (I'm using 2008) I have started to notice that when you save a file in the /App_Code folder, the program will hang for a bit before returning control. After a bit of research, I have learned that there's an auto-compile feature at work, which I assume is what is slowing down my system.
So the question is this: Is it possible to turn off the automatic compiling of files in the /App_Code folder? Or, even better, is there a way to reduce the time that it takes, or make it work a little more smoothly in the background? Any thoughts/ideas are appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
抱歉,我不知道有什么方法可以关闭编译 app_code 文件夹。如果这是一个问题,我会尝试将该目录中的文件数量减少到最少,甚至将它们移至单独的库中。
ScottGu 提供了一些可能对您有用的好建议。
https:// weblogs.asp.net/scottgu/Tip_2F00_Trick_3A00_-Optimizing-ASPNET-20-Web-Project-Build-Performance-with-VS-2005
Sorry i don't know of any way of switching off compiling the app_code folder. If its an issue I would try to keep the amount of files in this directory down to a min or even move them out to a seperate library.
ScottGu has some good tips that you might find useful.
https://weblogs.asp.net/scottgu/Tip_2F00_Trick_3A00_-Optimizing-ASPNET-20-Web-Project-Build-Performance-with-VS-2005
不,您无法关闭 app_code 文件夹。
No you can't turn off app_code folder.