I got the “using directive is unnecessary” message in Visual Studio the other day and to solve this issue, I removed
.vs folder from the root folder.
Does it help? Let’s us know your result at your side by adding a comment in the below comment form. Thank you.