dotnet / roslynator

Roslynator is a set of code analysis tools for C#, powered by Roslyn.
https://josefpihrt.github.io/docs/roslynator
Other
3.09k stars 256 forks source link

Consider using VSWhere to locate Visual Studio in build #831

Open xtqqczze opened 3 years ago

xtqqczze commented 3 years ago

Could avoid hardcoding the path: https://github.com/JosefPihrt/Roslynator/blob/fe965b358d87255264383c5ab0b576464a76b7e7/tools/build.cmd#L6

https://github.com/microsoft/vswhere

josefpihrt commented 3 years ago

@xtqqczze thanks for the tip!

xtqqczze commented 3 years ago

It seems you made changes in d880e64c24394e9e52fac36bd38dae75f2e27c3d so I no longer have to modify build.cmd.

It still might be worth considering using VSWhere for the case of Enterprise Visual Studio at different path, but close this issue if you want.