Install Heatwave extension for Visual Studio from https://www.firegiant.com/heatwave/, you will get the Wix toolset 5 automatically with templates.
Now, Create Wix projects from the newly available heatwave templates. This alone is enough.
I have tried installing nuget package as dependency for Wix projects from https://www.nuget.org/packages/wix, it is not working for me.