VS Solution Explorer Analyzers exclamation: ef1000 “possible sql injection vulnerability”

ぐ巨炮叔叔 提交于 2020-01-21 06:31:00

问题


Strange message in Solution Explorer.

ef1000 "possible sql injection vulnerability"

It doesn't prevent compile, no errors, no warnings, no messages in "Errors List".

No similar messages in the output on compile... Click doesn't move focus to "vulnerability" line. No referenced file/line related information.

But there is context menu with "Delete" button which doesn't work (nothing happens). There are no Analyzers related entries in proj file.

Looks like common package references bug. How to fix it?


回答1:


I went to that location C:\Users\User.nuget .. etc and deleted the package. I closed visual studio and reopened it. The package was restored and the error was gone. I was using a .net framework application in visual studio at the same time and was opening and closing the core solution repeatedly so I'm thinking the package got corrupted somehow.




回答2:


Just unload the project and reload it again, the warning is disappeared. The source



来源:https://stackoverflow.com/questions/52515419/vs-solution-explorer-analyzers-exclamation-ef1000-possible-sql-injection-vulne

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!