VS Solution Explorer Analyzers exclamation: ef1000 "possible sql injection vulnerability"

entity-framework-core entity-framework-core-2.1 visual-studio visual-studio-2017

Question

Strange message in Solution Explorer.

ef1000 "possible sql injection vulnerability"

enter image description here

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
13
9/22/2019 8:16:41 PM

Accepted Answer

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.

22
9/27/2018 3:48:48 AM

Popular Answer

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

UPDATE for Visual Studio 2019:

If you use Visual Studio 2019 you have always to get last version. So if there are any updates available just install it.

Click on Help => Check for Updates => Update.



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow