-
Notifications
You must be signed in to change notification settings - Fork 13
Description
I was using Antlr4BuildTasks 8.17.0 with Antlr4.Runtime.Standard 4.9.3 in a project that also referenced the "old" Antlr4.Runtime 4.6.6 and everything worked fine. I was able to maintain both nugets without namespace conflicts in the code by using an alias with the later:
<PackageReference Include="Antlr4.Runtime" Version="4.6.6">
<Aliases>Antlr4Legacy</Aliases>
<PrivateAssets>contentfiles;analyzers;build;compile</PrivateAssets>
</PackageReference>
I wont get into the reasons why I have such setup, but it used to work.
When trying to update to Antlr4.Runtime.Standard 4.10.1 and Antlr4BuildTasks 10.3.0 this stopped working and I have the following message:
You are referencing Antlr4.Runtime in your .csproj file. This build tool can only reference the NET Standard library https://www.nuget.org/packages/Antlr4.Runtime.Standard/. You can only use either the 'official' Antlr4 or the 'tunnelvision' fork, but not both. You have to choose one.
Since there is a way for this to work, can you remove such error? Or provide a way to make it still work?
Thanks!