peachpiecompiler / Peachpie.Microsoft.CodeAnalysis

Fork of dotnet/roslyn slightly modified to be used for https://github.com/peachpiecompiler/peachpie.
MIT License
10 stars 2 forks source link

Publish all packages instead of only Microsoft.CodeAnalysis #3

Open usr-sse2 opened 3 years ago

usr-sse2 commented 3 years ago

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.

jakubmisek commented 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).