com.unity.ide.visualstudio is not pulling in Roslyn Analyzers / Source Generators from csc.rsp files

Both com.unity.ide.rider and com.unity.ide.vscode correctly look at response files for analyzers (roslyn / source generators), while the Visual Studio variant doesn’t. It only looks at assembly compile options dll references.

This is preventing a nicer integration with analyzers that doesn’t require dropping a dll into the project.

The fix is rather simple - copying over the RetrieveRoslynAnalyzers and GetOtherArgumentsFromResponseFilesData methods from those other packages’ ProjectGeneration.cs and using it in ProjectGeneration.ProjectHeader().

Hello, we added this in the upcoming v2.0.17 of the VS Editor package.

Thanks!