英文:
VS 2022 CodeAnalysis CS8032 error on compile
问题
我有一个在3天前完美工作的VS2022项目,然后它停止编译并出现以下错误:
错误 CS8032:无法从 C:\Users\wasyster.nuget\packages\awssdk.simplenotificationservice\3.7.101.71\analyzers\dotnet\cs\AWSSDK.SimpleNotificationService.CodeAnalysis.dll 创建 Amazon.SimpleNotificationService.CodeAnalysis.PropertyValueAssignmentAnalyzer 的分析器实例:类型 Amazon.SimpleNotificationService.CodeAnalysis.PropertyValueAssignmentAnalyzer 中的方法 'get_SupportedDiagnostics' 来自程序集 'AWSSDK.SimpleNotificationService.CodeAnalysis, Version=3.3.0.0, Culture=neutral, PublicKeyToken=null' 没有实现。
我没有添加任何新的包,我正在修复一些错误。然后我尝试了其他一些项目,出现了 CodeAnalysis CS8032 错误。
有趣的是,我重新安装了整个操作系统,安装了新的 VS 2022 实例,但错误仍然存在。
我使用的是最新的Win10和最新的VS 2022专业版。
如果需要,我可以提供任何额外的代码示例。
英文:
I have a VS2022 project that worked perfect 3 days before, and then it stopped compiling with the following error:
Error CS8032 An instance of analyzer Amazon.SimpleNotificationService.CodeAnalysis.PropertyValueAssignmentAnalyzer cannot be created from C:\Users\wasyster.nuget\packages\awssdk.simplenotificationservice\3.7.101.71\analyzers\dotnet\cs\AWSSDK.SimpleNotificationService.CodeAnalysis.dll : Method 'get_SupportedDiagnostics' in type 'Amazon.SimpleNotificationService.CodeAnalysis.PropertyValueAssignmentAnalyzer' from assembly 'AWSSDK.SimpleNotificationService.CodeAnalysis, Version=3.3.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation..
A did not add any new packages, I was working on some bug fix.
Then I tried some other projects and I got the CodeAnalysis CS8032 error.
What is interesting I reinstalled my whole OP system, a new VS 2022 instance, and the error remains.
I am on the latest Win10, and the latest VS 2022 Professional.
If needed I can provide any additional code sample.
答案1
得分: 1
在运行了许多轮后,我们发现VS 2022 17.6与AWSSDK.SimpleNotificationService版本3.7.101.76不兼容。
在VS 2022 v17.5上运行完美。
英文:
After running manny rounds we figured out that VS 2022 17.6 is not compactibile with the AWSSDK.SimpleNotificationService Version 3.7.101.76.
On VS 2022 v17.5 works prefect.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论