Open usr-sse2 opened 3 years ago
Hi,
PeachPie uses its own build of Microsoft.CodeAnalysis
renamed to PeachPie.Microsoft.CodeAnalysis
(https://github.com/peachpiecompiler/Peachpie.Microsoft.CodeAnalysis).
It may be a bit outdated; Anyways; when referencing both the "PeachPie.Microsoft.CodeAnalysis" and "Microsoft.CodeAnalysis", I would recommend adding an alias (https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/extern-alias).
I'm developing a Roslyn-based code analyzer and try to add support for PHP using PeachPie. If I reference only Peachpie.Microsoft.CodeAnalysis, then I don't get Microsoft.CodeAnalysis.CSharp, Microsoft.CodeAnalysis.CSharp.Workspaces, Microsoft.CodeAnalysis.CSharp.Features (and the same for VisualBasic). If I reference both Microsoft.CodeAnalysis and Peachpie.Microsoft.CodeAnalysis, then there are compiler errors because many types such as
ISymbol
are defined in both assemblies. However, there are no Peachpie.Microsoft.CodeAnalysis.CSharp etc. packages on NuGet.