Question: I switch to Visual Studio 2019 and when I tried to install MySQL for VS in order to use Entity Framework, I didn't saw the 2019 version.

I used the following link : [Link to MySQL Addon and Connector](https://dev.mysql.com/downloads/installer/)

**Is there any way to get the MySQL functionality in VS2019 or am I doing something wrong?**

Thanks,

and as proof of concept
[![MySQL installer](https://i.stack.imgur.com/a8ytU.png)](https://i.stack.imgur.com/a8ytU.png)

Answer: 
It seems that Oracle hasn't provided official MySQL support for Visual Studio 2019 yet. You may have to wait for a new version and temporarily use Visual Studio 2017 instead.
I found that the MySQL installer checks a set of registry keys to detect Visual Studio (and it only goes up to Visual Studio 2017). 

Sample detection key: `[HKEY_CLASSES_ROOT\VisualStudio.DTE.15.0]`

I faked the Visual Studio 2017 key and the installation check succeeded, and on completing the installation the MySQL tools turned up in Visual Studio 2019. 

My fake registry file is just an export of the Visual Studio 2019 key already in my registry - then I changed the version number to look like the Visual Studio 2017 key that the MySQL installer was looking for. Merging the edited registry file adds the fake Visual Studio 2017 keys into the registry and leaves the existing Visual Studio 2019 keys alone. 

This gets me the MySQL toolbar, and the Add Data Connection functionality. I added EF6 and the Oracle MySql.Data.EntityFramework NuGet packages to a console app and the EF stuff worked.

Here are the registry file contents - I changed the exported DTE.16.0 values in my .reg file to DTE.15.0 (i.e. the old keys that MySQL was looking for) and left the text and GUID as they were for Visual Studio 2019:

---

REGEDIT4

```
[HKEY_CLASSES_ROOT\VisualStudio.DTE.15.0]
@="Microsoft Visual Studio DTE Object"

[HKEY_CLASSES_ROOT\VisualStudio.DTE.15.0\CLSID]
@="{2E1517DA-87BF-4443-984A-D2BF18F5A908}"

```

---

Make a .reg file and merge the contents then the installer will work. Your mileage may vary so maybe check it on a VM before trusting a random Internet stranger :-) ...