I am using the roslyn method of Formatter.Format Formatter.Format() to format some C #.
One of the parameters accepts a Workspace object that can be created using MSBuildWorkspace.Create() .
However, when I run the code, I get an exception at runtime because the workspace returns without supported languages. If I run this in a console application, it works fine.
Any ideas?
source share