For details, see this question issue in the Entity Framework Core repository: /dotnet/SqlClient/issues/2888.
Opening a connection to LocalDB fails with exception:
Microsoft.Data.SqlClient.SqlException:
"An attempt to attach an auto-named database for file C:\\Temp\\Test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."
Just compile and debug the Visual Studio solution's sole project, EFC-LocalDB-MRE
.