Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.53 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.53 KB

Build Status GitHub License Github Releases

VisualStudioOpener

The library is used to provide "Open in Visual Studio" functionality. Old style DTE COM engine is used.

Features

  • 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.

Usage

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.

Credits

© 2017-2018 Broken Event. brokenevent.com