MSBuild API users doing a large number of evaluations / builds might need to do other non-msbuild related expensive work after they're done with msbuild. However, since MSBuild has a bunch of static caches (e.g. OpportunisticIntern) there's no easy way to clear these. Some users clear them via reflection. We could add static methods to ProjectCollection and BuildManager to clear these.
MSBuild API users doing a large number of evaluations / builds might need to do other non-msbuild related expensive work after they're done with msbuild. However, since MSBuild has a bunch of static caches (e.g. OpportunisticIntern) there's no easy way to clear these. Some users clear them via reflection. We could add static methods to ProjectCollection and BuildManager to clear these.