Untiy plugin for integrating any roslyn code analyzer dll with VisualStudio or VSCode.
Unity will regenerate csproj file after any script file changes. The analyzer reference which manually attatched to Unity's .csproj will be reverted automatically.
This plugin hook the .csproj refreshing process and insert the analyzer reference into .csproj file if missing.
- Copy the folder to your unity project asset path.
- Click menu item
CodeAnalysis/Config
, then select custom analyzer dll. - Click menu item
CodeAnalysis/Refresh
, apply the analyzer to csproj. - double-click any script asset, open source file in Visual Studio. The selected analyzer appears on the
slution window/<Project>/references/analyzer/
.
Alternatives: UnityEngineAnalyzer
feature
- Visual Studio editor code analysis.
- VSCode partially supported. use cli command
msbuild build
to get all diagnostics on console. - No need to install vsix.