Skip to content

Conversation

@jjonescz
Copy link
Member

@jjonescz jjonescz commented Oct 31, 2025

Follow up on #42861.
Moving analyzer redirecting DLL to Roslyn: dotnet/roslyn#80969

@jjonescz jjonescz marked this pull request as ready for review November 3, 2025 10:15
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 removes the Microsoft.Net.Sdk.AnalyzerRedirecting project and its associated infrastructure from the SDK repository. The analyzer redirecting functionality (which prevents the "torn SDK" issue) is being moved from the SDK to Roslyn, as Roslyn already has a VSIX deployment mechanism.

Key changes:

  • Removed the entire Microsoft.Net.Sdk.AnalyzerRedirecting source project and test project
  • Updated the documentation to reflect that Roslyn will now deploy the IAnalyzerAssemblyRedirector implementation
  • Cleaned up build scripts and solution files to remove references to the deleted projects

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/UnitTests.proj Removed conditional test inclusion for AnalyzerRedirecting.Tests
test/Microsoft.Net.Sdk.AnalyzerRedirecting.Tests/SdkAnalyzerAssemblyRedirectorTests.cs Deleted test file
test/Microsoft.Net.Sdk.AnalyzerRedirecting.Tests/Microsoft.Net.Sdk.AnalyzerRedirecting.Tests.csproj Deleted test project
src/Tasks/sdk-tasks/GenerateRuntimeAnalyzersSWR.cs Removed AnalyzerRedirecting folder from deployment
src/Microsoft.Net.Sdk.AnalyzerRedirecting/source.extension.vsixmanifest Deleted VSIX manifest
src/Microsoft.Net.Sdk.AnalyzerRedirecting/SdkAnalyzerAssemblyRedirector.cs Deleted redirector implementation
src/Microsoft.Net.Sdk.AnalyzerRedirecting/Microsoft.Net.Sdk.AnalyzerRedirecting.csproj Deleted project file
src/Microsoft.Net.Sdk.AnalyzerRedirecting/AnalyzerRedirectingPackage.cs Deleted VS package file
src/Layout/VS.Redist.Common.Net.Core.SDK.RuntimeAnalyzers/VS.Redist.Common.Net.Core.SDK.RuntimeAnalyzers.proj Removed project reference and build steps for AnalyzerRedirecting
sdk.slnx Removed project references from solution
documentation/general/analyzer-redirecting.md Updated documentation to reflect that Roslyn now deploys the redirector

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.

1 participant