MSTest & AppDomains

前端 未结 6 1055
囚心锁ツ
囚心锁ツ 2021-01-04 07:46

In some my project I notice that during executing unit tests under VSTS2008 its VSTestHost\'s memory consuming grows. As I have very many tests in my solution it leads to Ou

6条回答
  •  攒了一身酷
    2021-01-04 08:28

    The only way to dispose of a singleton is to dispose the appDomain. A singleton is a static holding onto itself, so it's basically a circular reference. True singletons do not get disposed until the appdomain goes away.

提交回复
热议问题