Skip to content

Commit 33e71f3

Browse files
laske185xen2
authored andcommitted
perf: Optimize MSBuild project loading and dependency handling
Introduced caching for MSBuild project loading to improve performance and prevent redundant loads. Added mechanisms to avoid infinite recursion during dependency processing and ensured sequential handling of project references to address MSBuild limitations. Refactored package upgrade logic to simplify checks and reuse cached projects for NuGet reference updates. Enhanced error handling with detailed logging for unexpected exceptions. Added cleanup methods to unload and dispose of cached projects, ensuring proper resource management. Improved handling of NuGet restores and platform updates by re-evaluating project properties post-restore. Updated dependency processing to ensure all assemblies are registered and dependencies are loaded recursively. Finalized with proper state updates for packages and session-wide cleanup of cached projects.
1 parent 3c66577 commit 33e71f3

File tree

2 files changed

+209
-183
lines changed

2 files changed

+209
-183
lines changed

0 commit comments

Comments
 (0)