The original, highly-optimized C# Target for ANTLR 4
Fixes #293, where incremental builds with the new C# code generator sometimes produced invalid (corrupted) output files.
The following items apply to all users:
keys
and values
(#280)[Nullable]
and [NotNull]
in more places than before (#286)This release candidate builds on the updated build support started in v4.6.5-beta001 and v4.6.5-beta002. The following changes are provided for "SDK" projects (the new project system for Visual Studio 2017 and the dotnet
tool).
This preview release builds on the updated build support started in v4.6.5-beta001. The following changes are provided for "SDK" projects (the new project system for Visual Studio 2017 and the dotnet
tool).
Projects no longer require adding or configuring Antlr4
elements in a project. To disable this feature when updating, add the following property to your project file:
<PropertyGroup>
<EnableDefaultAntlrItems>False</EnableDefaultAntlrItems>
</PropertyGroup>
:link: See https://github.com/tunnelvisionlabs/antlr-integration-tests-csharp/commit/388a34fb86e86166a9e46da3a37a7b45af6c0eca for an example of how this upgrade simplifies project files.
The Properties window in Visual Studio 2017 will once again allow users to configure code generation for grammars. Unlike previous releases, no separate extension is required.
The build tooling using the C# code generator now works on non-Windows systems, fully eliminating the last remaining Java dependency.
This preview release packages the new C# port of the ANTLR 4 code generation tool. This feature completely eliminates the compile-time dependency on Java. Since this feature is still experimental, it is disabled by default. It can be enabled by adding the following to your project file:
<PropertyGroup>
<Antlr4UseCSharpGenerator>True</Antlr4UseCSharpGenerator>
</PropertyGroup>
:bulb: The new code generation tool produces code which should be compatible with the latest stable release of the runtime library. To use the new code generation tool without introducing a runtime dependency on a prerelease component, upgrade only the Antlr4.CodeGenerator package within the project.
Fix design time builds so IntelliSense works in Visual Studio when using the new project system.
dotnet
CLI (#208)This release is available through NuGet, with complete installation instructions described in the Readme.md.
Thank you goes to all of the following users, who contributed feedback, bug reports, code submissions, testing, and reviews which helped in this release. In alphabetical order by username. This list does not include people who contacted us through other channels, but your feedback is no less valuable so we thank you as well.