Pending Review

CSC Invalid Option 'latest' when generating documentation

Favorlock 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

I installed MSBuild from the link that a previous error gave me, however, now that it can find MSBuild I'm getting the following error:

CSC : error CS1617: Invalid option 'latest' for /langversion; must be ISO-1, ISO-2, Default or an integer in range 1 to 6.

I've tried the alpha of Bolt 2 and the extractor works fine on .NET 4.x, however, the generator from the current stable version of Bolt 1 is not working with 4.x for me. According to the comparison page Bolt should work for 4.x correct?

Does anyone know how to go about fixing this? I've had zero luck finding a solution within the past day.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hi Favorlock,

Indeed, Unity changed the underlying compiler to Roslyn in 2018.3. We adapted the documentation generator for it in Bolt 2 but it looks like we'll have to backport that change.

In the mean time, you can safely skip documentation generation. It is not essential for Bolt to work at all; it simply brings the online documentation to the graph inspector.