dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.75k stars 3.99k forks source link

Remove custom entry point finder from Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.AbstractEntryPointFinder #35376

Open tmat opened 5 years ago

tmat commented 5 years ago

Use Compilation.GetEntryPoint instead.

Also, use IEntryPointFinderService MEF component in ICSharpProjectSite.GetValidStartupClasses IVbCompilerProject.GetEntryPointsList and move the MEF component to Features.

Update the interface to take a ProjectId instead of a symbol. So that GetValidStartupClasses and GetEntryPointsList do not access symbols directly.

tmat commented 5 years ago

The current implementation seems to be out-of-date and not support async Main.