Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
417 views
in Technique[技术] by (71.8m points)

c# - Analyzer exceptions after migrating asp.net core 2.2 project to version 3.1

I've followed the required steps to migrate the project from v2.2 to 3.1, upgrading nuget packages, dependencies, etc. Project runs successfully, however any change I make to the code that require to build the project or solution, a bunch of messages are shown in the console view. Take at look the below image:

enter image description here

How can I do to dig into the cause of those errors or check vs2019 logs files? Thanks


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

warning AD0001: Analyzer 'Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzer' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'.

While we do migration from ASP.NET Core 2.2 to 3.x, and if any installed package(s) still have 2.x dependencies, which would cause this issue.

To fix this issue, as we discussed in comment, we can double check the installed nuget packages and its dependencies to make sure all packages are also updated.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...