1024programmer Asp.Net NET6 ​​regarding package downgrade error reporting

NET6 ​​regarding package downgrade error reporting

NET6 ​​regarding package downgrade error reporting

After my colleague updated the package two days ago, he found that the relevant authorization was not in place (I did not buy this version), so I needed to downgrade it back to the original version.

Originally, when I didn’t pull the latest version locally, there was no problem compiling it, but when I modified it after the update, there was a problem.

Severity Code Description Project File Line Suppression State
Error NU1605 Warning As Error: Detected package downgrade: ExcelUtilCore from 1.1.0 to 1.0.2. Reference the package directly from the project to select a different version.

After searching online for a long time, most of them are package problems with .NET platform upgrade. There is very little information about 1605 and it is not accurate, so I will record it.

1. Why is the error reported

In the project property, the default 1605 is used as an error

2. Processing method

 It is useless to remove 1605 and recompile in the settings. At this time, the following code will be generated


 $(WarningsAsErrors)


 $(WarningsAsErrors)

 $(WarningsAsErrors) is not what we need. We need to add NU1605 to compile successfully.

So the correct configuration is as follows


 NU1605


 NU1605

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/net6-regarding-package-downgrade-error-reporting/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索