Skip to content

Revert assembly-scan change#12945

Merged
rainersigwald merged 2 commits intodotnet:mainfrom
rainersigwald:revert-12823
Dec 15, 2025
Merged

Revert assembly-scan change#12945
rainersigwald merged 2 commits intodotnet:mainfrom
rainersigwald:revert-12823

Conversation

@rainersigwald
Copy link
Member

@rainersigwald rainersigwald commented Dec 15, 2025

It's not totally clear how, but this appears to have caused perf DDRIT failures on insertion to VS. Reverting to investigate later.

Copilot AI review requested due to automatic review settings December 15, 2025 21:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts two previous changes related to assembly scanning and resolution that caused performance failures in Visual Studio insertion. The revert removes the lazy initialization of CLR 2.0/3.5 runtime assemblies and the support for .exe file resolution in legacy .NET Framework tasks.

Key Changes:

  • Removed lazy initialization of runtimeAssembliesCLR35_20 and associated helper methods
  • Simplified CreateMetadataLoadContext to only scan .dll files (removed .exe support)
  • Removed FrameworkLocationHelper.cs reference from MSBuild.csproj

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Shared/TypeLoader.cs Reverted assembly resolution changes - removed CLR 2.0/3.5 lazy loading logic and .exe file scanning
src/MSBuild/MSBuild.csproj Removed FrameworkLocationHelper.cs reference that was added for CLR 2.0/3.5 support

@rainersigwald rainersigwald enabled auto-merge (squash) December 15, 2025 21:11
@rainersigwald rainersigwald merged commit fe44b97 into dotnet:main Dec 15, 2025
10 checks passed
@rainersigwald rainersigwald deleted the revert-12823 branch December 15, 2025 22:02
YuliiaKovalova added a commit that referenced this pull request Dec 29, 2025
YuliiaKovalova added a commit that referenced this pull request Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants