Error when running LINQ queries
Posted: Thu 14 Nov 2019 15:41
Hi I am evaluating using LINQ Insight with VS2019. Whenever I attempt to run a query I receive the following error:
Message: Inconsistent language versions
Parameter name: syntaxTrees
Type: System.ArgumentException
Source: Microsoft.CodeAnalysis.CSharp
Site: CommonLanguageVersion
Stack Trace:
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CommonLanguageVersion(ImmutableArray`1 syntaxTrees)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation..ctor(String assemblyName, CSharpCompilationOptions options, ImmutableArray`1 references, CSharpCompilation previousSubmission, Type submissionReturnType, Type hostObjectType, Boolean isSubmission, ReferenceManager referenceManager, Boolean reuseReferenceManager, SyntaxAndDeclarationManager syntaxAndDeclarations, IReadOnlyDictionary`2 features, AsyncQueue`1 eventQueue)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation..ctor(String assemblyName, CSharpCompilationOptions options, ImmutableArray`1 references, CSharpCompilation previousSubmission, Type submissionReturnType, Type hostObjectType, Boolean isSubmission, ReferenceManager referenceManager, Boolean reuseReferenceManager, SyntaxAndDeclarationManager syntaxAndDeclarations, AsyncQueue`1 eventQueue)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.Update(ReferenceManager referenceManager, Boolean reuseReferenceManager, SyntaxAndDeclarationManager syntaxAndDeclarations)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.AddSyntaxTrees(IEnumerable`1 trees)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CommonAddSyntaxTrees(IEnumerable`1 trees)
at lwbFPyXmkMu3Ua0YJQ.vILkmhsnM5AwjsRPcP.CompileInternal(ExecutionBlock , String , String , CancellationToken , CompilerErrorCollection& )
at Devart.LinqInsight.Implementation.QueryExecutor.A6sc5yaNXB()
at Devart.LinqInsight.Implementation.QueryExecutor.qNajypvdy()
at Devart.LinqInsight.Implementation.QueryExecutor.<>c__DisplayClass59_0.<StartNewTask>b__0()
I have disabled IntelliTrace and disabled my ReSharper extension but nothing seems to help? Any ideas?
Thanks in advance.
Message: Inconsistent language versions
Parameter name: syntaxTrees
Type: System.ArgumentException
Source: Microsoft.CodeAnalysis.CSharp
Site: CommonLanguageVersion
Stack Trace:
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CommonLanguageVersion(ImmutableArray`1 syntaxTrees)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation..ctor(String assemblyName, CSharpCompilationOptions options, ImmutableArray`1 references, CSharpCompilation previousSubmission, Type submissionReturnType, Type hostObjectType, Boolean isSubmission, ReferenceManager referenceManager, Boolean reuseReferenceManager, SyntaxAndDeclarationManager syntaxAndDeclarations, IReadOnlyDictionary`2 features, AsyncQueue`1 eventQueue)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation..ctor(String assemblyName, CSharpCompilationOptions options, ImmutableArray`1 references, CSharpCompilation previousSubmission, Type submissionReturnType, Type hostObjectType, Boolean isSubmission, ReferenceManager referenceManager, Boolean reuseReferenceManager, SyntaxAndDeclarationManager syntaxAndDeclarations, AsyncQueue`1 eventQueue)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.Update(ReferenceManager referenceManager, Boolean reuseReferenceManager, SyntaxAndDeclarationManager syntaxAndDeclarations)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.AddSyntaxTrees(IEnumerable`1 trees)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CommonAddSyntaxTrees(IEnumerable`1 trees)
at lwbFPyXmkMu3Ua0YJQ.vILkmhsnM5AwjsRPcP.CompileInternal(ExecutionBlock , String , String , CancellationToken , CompilerErrorCollection& )
at Devart.LinqInsight.Implementation.QueryExecutor.A6sc5yaNXB()
at Devart.LinqInsight.Implementation.QueryExecutor.qNajypvdy()
at Devart.LinqInsight.Implementation.QueryExecutor.<>c__DisplayClass59_0.<StartNewTask>b__0()
I have disabled IntelliTrace and disabled my ReSharper extension but nothing seems to help? Any ideas?
Thanks in advance.