[9.0.3xx] Add analyzer redirecting VSIX#47021
[9.0.3xx] Add analyzer redirecting VSIX#47021jjonescz merged 3 commits intodotnet:release/9.0.3xxfrom
Conversation
There was a problem hiding this comment.
PR Overview
This PR backports analyzer redirection changes to insert a VSIX component in Visual Studio 17.14. The changes include adding a new task to generate runtime analyzers SWR files, implementing analyzer assembly redirection logic, and introducing tests that verify redirection based on version compatibility.
Reviewed Changes
| File | Description |
|---|---|
| src/Installer/core-sdk-tasks/GenerateRuntimeAnalyzersSWR.cs | Adds a new task for generating a runtime analyzers SWR file with folder and file inclusion logic |
| test/Microsoft.Net.Sdk.AnalyzerRedirecting.Tests/SdkAnalyzerAssemblyRedirectorTests.cs | Introduces tests to validate analyzer redirection across different version scenarios |
| src/Microsoft.Net.Sdk.AnalyzerRedirecting/SdkAnalyzerAssemblyRedirector.cs | Implements redirection logic that maps analyzer assembly names to their redirected paths and builds an analyzer map |
| src/Microsoft.Net.Sdk.AnalyzerRedirecting/AnalyzerRedirectingPackage.cs | Provides a minimal package definition for VS integration |
Copilot reviewed 21 out of 21 changed files in this pull request and generated 3 comments.
src/Microsoft.Net.Sdk.AnalyzerRedirecting/SdkAnalyzerAssemblyRedirector.cs
Show resolved
Hide resolved
src/Microsoft.Net.Sdk.AnalyzerRedirecting/SdkAnalyzerAssemblyRedirector.cs
Show resolved
Hide resolved
|
FYI @v-wuzhai, jjonescz will be creating a VS insertion from this build as this change requires changes in the VS authoring. You should still do your planned Thursday staging for 3xx and it'll update the VS branch. He'll create a fork of that to do and test his VS authoring work so as not to risk the regularly weekly insertion. |
Backport of #42861 so it can be inserted into VS 17.14.
Test insertion: https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/575718