this is an Asp.net MVC Core 6.0 project referring latest Telerik Nuget dll - 2022.1.119
Builds fine locally. But fails in build server due to compatibility issue.
Below is the build log from server.
2022-03-01T03:27:30.5720121Z Checking compatibility for Microsoft.CodeAnalysis.CSharp.Workspaces 4.0.0 with .NETFramework,Version=v6.0. 2022-03-01T03:27:30.5721443Z Package Microsoft.CodeAnalysis.CSharp.Workspaces 4.0.0 is not compatible with net60 (.NETFramework,Version=v6.0). Package Microsoft.CodeAnalysis.CSharp.Workspaces 4.0.0 supports: 2022-03-01T03:27:30.5724004Z - netcoreapp3.1 (.NETCoreApp,Version=v3.1) 2022-03-01T03:27:30.5724701Z - netstandard2.0 (.NETStandard,Version=v2.0)
Compatibility Issue is because Telerik dll is referring to code analysis dll, which supports only .Net 3.0 core apps.
Please let me know how to resolve this. Why Telerik dll is pulling an lower framework (3.0 core) dependency for .net 6.0 project? Below is snapshot of dll reference in project. Let me know.