Posted 7 April 2022, 4:54 am EST
Hi. I’m trying to use AR 16 in my ASP.net 6 application and getting version conflicts as shown:
Version conflict detected for Microsoft.CodeAnalysis.CSharp. Install/reference Microsoft.CodeAnalysis.CSharp 4.0.0 directly to project MyProject.Website.External to resolve this issue.
MyProject.Website.External → Microsoft.VisualStudio.Web.CodeGeneration.Design 6.0.1 → Microsoft.VisualStudio.Web.CodeGenerators.Mvc 6.0.1 → Microsoft.VisualStudio.Web.CodeGeneration 6.0.1 → Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore 6.0.1 → Microsoft.VisualStudio.Web.CodeGeneration.Core 6.0.1 → Microsoft.VisualStudio.Web.CodeGeneration.Templating 6.0.1 → Microsoft.CodeAnalysis.CSharp (>= 4.0.0)
MyProject.Website.External → MyProject.Documents → GrapeCity.ActiveReports 16.0.2 → GrapeCity.ActiveReports.Core.Scripting 3.0.2 → Microsoft.CodeAnalysis.Compilers 3.9.0 → Microsoft.CodeAnalysis.CSharp (= 3.9.0). MyProject.Website.External
Installing Microsoft.Codeanalysis.CSharp 4.0.0 isn’t a fix because it won’t install due to AR specifically wanting 3.9.0.
Any tips on how to get past this? It’s a big stumbling block since Microsoft’s tools are all using >=4.0.0 and I can’t see how to get both to play nice at the same time.