I have a .NET Core 3.1 class Library which uses a nuget package called RazorEngineCore which references Microsoft.CodeAnalysis.CSharp v3.7.0 which then references Microsoft.Code