Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish all packages instead of only Microsoft.CodeAnalysis #3

Open
usr-sse2 opened this issue Sep 10, 2021 · 1 comment
Open

Publish all packages instead of only Microsoft.CodeAnalysis #3

usr-sse2 opened this issue Sep 10, 2021 · 1 comment

Comments

@usr-sse2
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants