dotnet / roslyn-analyzers-contrib

Replaced by dotnet/roslyn-analyzers.
https://github.com/dotnet/roslyn-analyzers
Apache License 2.0
16 stars 11 forks source link

Update analyzer project template to separate analyzers from code fixes #8

Open sharwell opened 8 years ago

sharwell commented 8 years ago

Currently the project template places analyzers and code fixes in the same assembly. This results in a dependency on Microsoft.CodeAnalysis.Workspaces which is easy to accidentally use in an analyzer, resulting in type load exceptions when building from the command line. For example, DotNetAnalyzers/StyleCopAnalyzers#1352 was the underlying cause of DotNetAnalyzers/StyleCopAnalyzers#1659, which was extremely difficult to track down but would have been easily avoided if the assemblies were separated from the start.