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

Targets file and binding code are using different locations #4334

Closed duncanp-sonar closed 1 year ago

duncanp-sonar commented 1 year ago

Description

The targets files are looking for binding files under `%LOCALAPPDATA%, but the binding process is writing them under %APPDATA% i.e. the targets will never find them.

If the files are written under APPDATA they will roam i.e. if the user is using a Windows-domain joined machine, they will be synchronized automatically when the user logs on to another domain-joined machine.

Other SonarLint settings roam e.g. telemetry. It seems reasonable that if the user has bound the solution on one machine, they would expect it to be bound on another. To put it another way, they wouldn't expect to have to bind the same solution once per machine.

duncanp-sonar commented 1 year ago

Not an issue: the targets are looking for binding files in %APPDATA%, which is where the binding process is writing them.

Separately, the targets are installed under %LOCALAPPDATA% which is correct - that is where the MSBuild targets are looking for the ImportBefore folder.