I converted a Visual Studio 2010 project to Visual Studio 2015, and the conversion worked fine, so I decided to change the target framework to .NET 4.6.1, just to see if there would be any issues.
I then I got the following error:
Analyzer 'Microsoft.CodeAnalysis.Diagnostics.VisualBasic.VisualBasicCompilerDiagnosticAnalyzer' threw the following exception: 'Exception occurred with following context: Compilation: ArtDepInterface System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.First[TSource](IEnumerable'1 source) at System.Linq.ImmutableArrayExtensions.First[T](ImmutableArray'1 immutableArray) at Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation.IsIOperationFeatureEnabled() at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass33_0.b__0() at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable'1 info)
It has an error code of AD0001
, so I looked it up and I found another forum post, but it was a ArgumentNullException
not an InvalidOperationException
so I couldn't see that it was related.
Has anyone ran across this issue or know how to correct it?
I'd appreciate any input or direction. Thanks!
Update: I tried using the performance profiler, and it threw all sorts of errors relating to my inhouse-built DLLs saying that it can't find any public methods. If this leads to the answer, I'll add it.