Skip to content

Add netstandard 2.0 target to Antlr3.Runtime #123

@zgabi

Description

@zgabi

Currently I'm receiving the following error in a .net core project:
error PS0264: Ambiguous match: need to map 'System.Runtime.Serialization.StreamingContext, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Context=Runtime' and have several candidates: 'System.Runtime.Serialization.StreamingContext, Antlr3.Runtime, Version=3.5.0.2, Culture=neutral, PublicKeyToken=eb42632606e9261f, Context=Reference', 'System.Runtime.Serialization.StreamingContext, System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, Context=Reference.

Because it is referencing the netstandard1.1 version of Antrl3.Runtime package which has a hack for the StreamingContext sturct:
https://github.com/antlr/antlrcs/blob/master/Runtime/Antlr3.Runtime/System/StreamingContext.cs

This hack is not needed in netstandard2.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions