0

我开发了一个使用命名空间 Microsoft.CodeAnalysis.FindSymbols 的新 Roslyn 规则。该分析仪是在.Net Standard 1.3 - with VS 2022. 分析仪与VS 2017 (.Net Framework 4.8). 添加分析器参考后在 VS 2017 中编译代码时,我收到警告

CSC : warning AD0001: Analyzer 'Analyzers.MyAnalyzer' threw an 
exception of type 'System.IO.FileNotFoundException' with message 
'Could not load file or assembly 
'Microsoft.CodeAnalysis.Workspaces, Version=2.10.0.0, 
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its 
dependencies. The system cannot find the file specified.'.

有人可以帮我解决这个问题吗?

4

0 回答 0