I am using LocalDB for development testing of my C# / MSSQL application. I use VS 2013 generally and on this machine LocalDB is listed as (localdb)\ProjectsV12
.
However I also sometimes work on a laptop running VS2015 Community edition. I've just discovered that from this version of VS, Local DB is referred to as either (localdb)\ProjectsV13
or (localdb)\MSSQLLocalDB
(I don't know why both).
Is there a way I can avoid having multiple connection strings, is there one generic way to define a connection string for LocalDB regardless of version?