NDepend.API Documentation
GetVisualStudioInstallPaths Method
NDepend.DotNet.VisualStudio Namespace > IVisualStudioManager Interface : GetVisualStudioInstallPaths Method
Return Visual Studio 2017 and upper install paths.
Syntax
IAbsoluteDirectoryPath[] GetVisualStudioInstallPaths()

Return Value

For example it can return a list of path like these ones, depending on the Visual Studio 2017 and upper instances on the current machine. C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview C:\Program Files (x86)\Microsoft Visual Studio\2019\Community C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
Remarks
This method can only be invoked within a .NET Framework 4.x and Windows OS context else it throws a NotSupportedException.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IVisualStudioManager Interface
IVisualStudioManager Members