Visual Studio 类型发现服务非常慢
我已经关注了这个 博客文章(事实证明这很棒),以便从项目中检索继承自某个基类的类型。
这通常工作得很好,但是当从 Web 应用程序“发现”类型时,它可能会非常慢。实际上有时花了 7 分钟多。问题是我找不到重现此行为的确切步骤。
有没有人偶然发现类似的东西或者可以解释幕后发生的事情。深入研究使用 Reflector 执行此操作的实际类并没有多大帮助。 (它是 Microsoft.VisualStudio.Design.dll 程序集中的 VSTypeResolutionService 类)
I have followed this blog post (which proved to be awesome) in order to retrieve a type (types) from the project that inherit from a certain base class.
This usually work fine, however when "discovering" types from an Web Application it can be really slow. It actually took over 7 minutes at some point. The problem is I can't find exact steps for reproducing this behaviour.
Has anyone stumbled upon something similar or can explain what is going on behind the curtain. Digging into the actual class that does it using Reflector did not help much. (It's the VSTypeResolutionService class from the Microsoft.VisualStudio.Design.dll assembly)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论