Derivative of Hartwell's Antrl4cs: contains "ITask" wrapper for Msbuild, schemas for setting Antlr4 file properties, and a separately installed official Antlr4 java tool at antlr.org downloads.
Install-Package Antlr4BuildTasks -Version 1.0.4
dotnet add package Antlr4BuildTasks --version 1.0.4
<PackageReference Include="Antlr4BuildTasks" Version="1.0.4" />
paket add Antlr4BuildTasks --version 1.0.4
Clean up of the targets file and Task assembly with Java home.
This package is not used by any popular GitHub repositories.