SonarSource / sonarlint-visualstudio

SonarLint extension for VisualStudio
https://redirect.sonarsource.com/doc/sonar-visualstudio.html
GNU Lesser General Public License v3.0
460 stars 77 forks source link

[Bug] .sonarlint files are not removed from the Solution Explorer #4432

Closed duncanp-sonar closed 1 year ago

duncanp-sonar commented 1 year ago

Description

If the user has added the .sonarlint folder to the Solution Explorer it will not be removed from the .sln file during cleanup. The Solution Explorer will show the files as missing:

image

Note: the .sonarlint is not added to the .sln as part of the normal binding process. The user would have to have done it manually. Also, it isn't as simple as clicking on Add existing folder in the Solution Explorer as that option does not exist. They would have to have added it in two steps: 1) add a new solution folder 2) add the existing files to the folder

=> won't fix as it is not part of the normal binding setup?

duncanp-sonar commented 1 year ago

Won't fix. Adding folders/files to the solution is not part of the automatic binding process. It would have to have been done manually, so we won't undo it.

The impact on the user is low: the solution will still build correctly. The only indication of a problem is the red cross next to the missing file, as shown in the screenshot above.