In the .NET Framework 4.6 and 4.6.1, attempting a TCP/IP connection to a SQL Server database that resolves to localhost fails with the error, "A network-related or ...
browse to your local server through the "Server Explorer" tab in VS.NET. You should be able to view/generate a new connection string from there. I've noticed that localhost/ (local) didn't work for me ...