Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK resolvers should have an API to clear state #9164

Open
Tracked by #11441
jeffkl opened this issue Aug 24, 2023 · 2 comments
Open
Tracked by #11441

SDK resolvers should have an API to clear state #9164

jeffkl opened this issue Aug 24, 2023 · 2 comments

Comments

@jeffkl
Copy link
Contributor

jeffkl commented Aug 24, 2023

SDK resolvers have caches because they depend on certain things such as files on disk to determine paths to SDKs. In order to make the cache more effective, SDK resolvers can make these caches static so they can be re-used by evaluations within the same process, especially Visual Studio. However, a long lived process like devenv.exe can cause these caches to potentially grow. It would be good if MSBuild had an API that could tell SDK resolvers to clear their state. For example, in Visual Studio when you close a solution, the SDK resolvers' caches could be cleared.

@AR-May
Copy link
Member

AR-May commented May 28, 2024

Team triage: @baronfel what do you think?

@baronfel
Copy link
Member

This seems like a good thing to have - it appears we designed the resolver mechanism with relatively short lived clients in mind, but VS (and the MSBuild Server Daemon) are a different use case entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants