The library is used to provide "Open in Visual Studio" functionality. Old style DTE COM engine is used.
- Visual Studio installations detection.
- OpenFile(string filename, int lineNumber) for any Visual Studio.
- All versions from VS 2003 to 2017 are supported.
- Parallel VS2017 installations are supported.
- VS instance reusing.
- All COM-related black magic (errors, instance waiting, etc.) is handled.
- Notepad as fallback, if no VS found.
The entry point is BrokenEvent.VisualStudioOpener.VisualStudioDetector
static class. You can use it to detect all existing Visual Studio installations:
foreach (IVisualStudioInfo info in VisualStudioDetector.GetVisualStudios())
{
// code
}
You can also get the latest VS or VS by its name (called Description
). Each IVisualStudioInfo
have
void OpenFile(string filename, int lineNumber = -1);
method to open files.
© 2017-2018 Broken Event. brokenevent.com