Closed trejjam closed 1 month ago
@jasonmalinowski -- Do you have any context here? Same analyzer id as https://github.com/dotnet/roslyn/issues/65850 and same repo as https://github.com/dotnet/roslyn/issues/69522
The issue is not with Roslyn.
If anyone hits a similar issue, the problem is that in "IDE" mode, you have a dependency as CompilationReference
(a link to Compilation
of your dependencies) rather than the final assembly of your dependency. Due to that, you need special handling at some places when processing SyntaxTrees from your dependencies.
Version Used: .Net 8
Steps to Reproduce:
Diagnostic Id: CS8795 Partial method
UseExternalMapperFromAnotherAssembly.ProjectToTarget(IQueryable<UseExternalMapperFromAnotherAssembly.Source>)
must have an implementation part because it has accessibility modifiers.Expected Behavior: There will be no CS8795 since the project compiles normally. It seems like a bug in the C# language server.
Actual Behavior: Error CS8795 is reported.
The error goes away when: