How to open .dbml in designer mode with VS?

After installing Visual Studio 2017, my LINQ To SQL .dbml definitions open in a XML editor instead of the built in designer.

How do I configure VS to open .dbml in Designer mode instead of XML editor?


Solution 1:

  1. Quit devenv
  2. Launch Visual Studio Installer
  3. Modify VS2017
    enter image description here
  4. Click on the Individual components tab and scroll down to LINQ to SQL tools (within Code tools group.)
    enter image description here
  5. Click Modify.
  6. Launch devenv again and you should be able to open .dbml in the designer we all love to hate.