.Net 构建并文件保存在 App_Code 文件夹中
在 Visual Studio 2008 中,当我将文件保存在 App_Code 文件夹中时,与保存在 App_Code 文件夹外部的类似大小的文件相比,保存时间要长得多。
同样,当我对 App_Code 文件夹中的文件中的代码进行更改时,.Net 解决方案的编译时间比在其他文件中进行代码更改时要长得多。这是什么原因呢?谢谢
In Visual Studio 2008, when I save a file in the App_Code folder it takes quite a lot longer to save than a similar sized file that is located outside of App_Code folder.
Similarly, when I make changes to the code in a file in the App_Code folder, it takes the .Net Solution a lot longer to compile than it does when making code changes in other files. What is the reason for this? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
connect.microsoft.com 网站上也有类似的报告。微软的解决方案指向了一个插件 Document!X,但这似乎并没有涵盖所有报告的案例。有一些评论指出,在没有插件的情况下也会出现问题(如这篇文章)。
https://connect.microsoft.com/VisualStudio/feedback/details/368690/visual-studio-2008-sp1-ide-temporarily-freezes-when- saving-code-files
我办公室的其他人有也证实这个问题正在发生在他们身上。也许这是我们都使用的常见插件。但是,我希望我们可以更改一个设置来防止这种情况发生。
There's a similar report on the connect.microsoft.com site. The microsoft solution pointed to a plugin Document!X, but that didn't seem to cover all reported cases. There are a couple of comments which states that the problem occurs without the plugin (like this post).
https://connect.microsoft.com/VisualStudio/feedback/details/368690/visual-studio-2008-sp1-ide-temporarily-freezes-when-saving-code-files
Other people in my office have also confirmed that this problem is happening for them. Maybe it's a common plugin we all use. But, I'm hoping there is a setting we can change to prevent this.
我从未注意到有什么区别,但如果想完全消除 app_code 文件夹,您可以切换到 Web 应用程序而不是网站项目,然后您可以根据需要将这些文件移动到单独的项目中。
享受!
I have never noticed a difference, but if want to eliminate the app_code folder completely you can switch to a web application as opposed to a web site project and then you will be able to move these files into a separate project if you would like.
Enjoy!