com.bovinelabs.analyzers
com.bovinelabs.analyzers copied to clipboard
Add macOS Unity Editor support
When using this package in the macOS Unity Editor, I get the following error:
Packages/com.bovinelabs.analyzers/ProjectFilesGeneration.cs(12,11): error CS0246: The type or namespace name 'SyntaxTree' could not be found. Are you missing an assembly reference?
Is it possible to add macOS support?
This currently requires visual studios for the project generation and would need to be setup specifically for each IDE that has some type of project generation callback.
Not sure what IDE users use on mac OS. Is it visual studios code? If I have some time I might see how to hook into that.
I and pretty much everyone else at my studio use Visual Studio Code.
One of the other main IDEs that is used on macOS with Unity is Visual Studio for Mac as that is the IDE that Unity bundles with the macOS Unity installer.
Did a bit of research on this. As far as I can tell Roslyn Analyzers are currently only supported by Visual Studios and Rider.
I did intend to provide support for Rider at some time which does run on Mac OS, but unfortunately as far as I can tell these analyzers are currently not supported by Visual Studios Code.
I'm making a few tweaks that will stop the package from causing errors with unsupported editors for the time being.